Re: Rotating logfiles

From: Apiset Tananchai <[email protected]>
Date: Sat, 5 Jul 1997 00:07:20 +0700 (ICT)

On Fri, 4 Jul 1997, Malcolm B.J. Garbutt wrote:
> On Fri, 4 Jul 1997, Apiset Tananchai wrote:
> > On Fri, 4 Jul 1997, Malcolm B.J. Garbutt wrote:
> > > On Thu, 3 Jul 1997, John E. Kozitzki wrote:
> > > >
> > > > Currently, I clean the logs with a script similar to the following:
> > > >
> > > > mail -s user "cache.log" < cache.log; cp /dev/null cache.log
> > > > mail -s user "store.log" < store.log; cp /dev/null store.log
> > > > mail -s user "access.log" < access.log; cp /dev/null access.log
> > > >
> > > > Could this cause me problems?
> >
> > You may have a problem when total size of aboved log files > 80MB/day as
> > my squid generate.
> May I ask why ?

Because your mailbox will getting full very quickly. :) Am I missed some
point you tried to ask?

By the way, here's what I have in my crontab

59 23 * * * kill -USR1 `cat /tmp/squid.pid`
0 1 * * * calamaris.pl /usr/local/squid/logs/access.log.0 | mail -s 'Proxy daily report' aet@demo.ksc.co.th

You can find calamaris from squid's homepage. Thanks to Cord Beerman for
makeing this great script!! :) I use logfile_rotate=1 so I will have
yesterday logfile to check in case there was something wrong with my
system.

--
aet
Received on Fri Jul 04 1997 - 10:03:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:40 MST