Quote:
Originally Posted by cccc
Hi
I have Squid Cache: Version 3.1.20 installed on Debian and I'm using Sarg to generate Proxy HTML reports.
My questions is, do I lost squid logfiles from last 14 days using: in /etc/squid3/squid.conf
and this line in cron:
Code:
55 23 * * * root /usr/bin/squid –k rotate
?
|
From the documented squid.conf:
Code:
# TAG: logfile_rotate
# Specifies the number of logfile rotations to make when you
# type 'squid -k rotate'. The default is 10, which will rotate
# with extensions 0 through 9. Setting logfile_rotate to 0 will
# disable the file name rotation, but the logfiles are still closed
# and re-opened. This will enable you to rename the logfiles
# yourself just before sending the rotate signal.
#
# Note, the 'squid -k rotate' command normally sends a USR1
# signal to the running squid process. In certain situations
# (e.g. on Linux with Async I/O), USR1 is used for other
# purposes, so -k rotate uses another signal. It is best to get
# in the habit of using 'squid -k rotate' instead of 'kill -USR1
# <pid>'.
#
# Note, from Squid-3.1 this option has no effect on the cache.log,
# that log can be rotated separately by using debug_options
#Default:
# logfile_rotate 10
You can specify generations to keep here, along with frequency (via cron), so you can customize to your liking.
In your posting, it looks like you're rotating logs
daily and only keeping a single generation.