[squid-users] RE: access logs not rotating ...

From: Sturgis, Grant <Grant.Sturgis@dont-contact.us>
Date: Mon, 30 Dec 2002 10:11:43 -0700

I recommend using logrotate and logrotate.conf. My config (for access.log)
looks like this:

# system-specific logs may be also be configured here.
/usr/local/squid/var/logs/access.log {
   daily
   dateext
   nocreate
   postrotate
        /usr/local/squid/bin/squid -k rotate
        /usr/local/share/scripts/squidlog_mv.sh
   endscript
}

Where squidlog_mv.sh does this:

mv /usr/local/squid/var/logs/access.log-20* /usr/local/share/logs/

-----Original Message-----
From: Kenn Murrah [mailto:kenn@thebytebusiness.com]
Sent: Monday, December 30, 2002 6:52 AM
To: squid-users@squid-cache.org
Subject: access logs not rotating ...

i hate to ask such a general question, but i'm having trouble figuring out
where to start ...

my access.log is not rotating (it's up to 118,000,000 bytes) ... and i
haven't a clue where to find the answer to the problem (i want the logs to
rotate daily) ....

feel free to tell me ro RTFM, just point me in the direction of the right FM
:-)

thanks.

This electronic message transmission is a PRIVATE communication which
contains information which may be confidential or privileged. The
information is intended to be for the use of the individual or entity named
above. If you are not the intended recipient, please be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. Please notify the sender of the delivery error by replying to
this message, or notify us by telephone (877-633-2436, ext. 0), and then
delete it from your system.
Received on Mon Dec 30 2002 - 10:12:00 MST

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