Re: Rotating logfiles

From: Malcolm B.J. Garbutt <mgarbutt@dont-contact.us>
Date: Sat, 5 Jul 1997 10:09:19 +1000 (EST)

On Sat, 5 Jul 1997, Apiset Tananchai wrote:

> 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?
Yes, I answered someones question, not asked it, if the person is already
sending the logs to his mail, good luck to them, I would never commit
that sort of suicide on my sendmail, I look at the log.0 files and then
delete them.

>
> 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
>
>

_________________________________________________________
Malcolm Garbutt
Network Operations-
MILDURA.NET MURRAY.NET

Office Ph. 03 50 212 991 Office Fax 03 50 212 932
Emergency Ph. 018 596 150

            .....Bringing the World to You......
_________________________________________________________
Received on Fri Jul 04 1997 - 16:34:06 MDT

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