Summary.Net Archives
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Summary-Talk] Using Summary with logs rotated by logrotate



It is possible to do this.

If you have logrotate setup to gzip the logs, you need to setup two 
subreports 
for each set of logs for summary to work properly.

If you are not zipping the logs, you can just use a wild card in the 
logfile 
name in the summary config to get all of your logs. Everytime you logs 
get 
rotated, summary will figure out which are the new files and adjust 
accordingly.

DownURL: ftp://webserver.domain.com/logsfolder/logfile.log*

This will get logfile.log, logfile.log.1, logfile.log.2 etc.. And will 
work 
fine as long as you do not delete the logfiles off of your summary server.

If you want to be able to delete the logfiles off of your summary server, 
you 
need to use incremental mode as Jason said.

Nick

On Wednesday 30 July 2003 06:58, nvarney@edt.fr wrote:
> How can I use summary on logs that are rotated by logrotate ?
>
> On my web server, http logs are rotated by logrotate with produce
> access_log,
> access_log.1, ...
> Summary is configured to download logs from the server.
>
> After each rotation, I lose old log information. Is there a tip to avoid
> losing
> old logs not maintained by logrotation, and keep them on the Summary
> machine ?
>
> Thanks for help
>
> Nicolas

-- 
Nick Davis 
Associate Systems Administrator 
ndavis@iexposure.com 
Internet Exposure, Inc. 
http://www.iexposure.com  

(612)676-1946 
Web Development-Web Marketing-ISP Services
-------------
Go to <http://summary.net/list.html> to update subscription info.