You set the Number of copies in your squid.conf
with the parameter:
logfile_rotate 15
(That would be 15 copies of the logfile)
Then you add a line to your crontab in which you do
a daily "squid -k rotate"
Greetings Olli
-----------------------------------------------------
BildungsCenter der Arbeiterkammer Vorarlberg
Fink Olli
SchiesstÄtte 16
6800 Feldkirch
Tel.: 05522/3551-16
Fax: 05522/3551-17
e-mail: mailto:olli.fink@ak-vorarlberg.at
-----------------------------------------------------
> -----UrsprØngliche Nachricht-----
> Von: Ilya [mailto:quiz@gorodok.net]
> Gesendet am: Montag, 19. Mai 2003 08:02
> An: squid-users@squid-cache.org
> Betreff: [squid-users] logrotate
>
> Hello!
>
> Can you explain me how "-k rotate <num>" works?
> As far as i know, if we want to rotate log-files we use
> "logrotate" program. But, for example, if we set -k rotate 10,
> what does it mean? What is the condition of rotation? (If we
> use "logrotate", in its parameters we can set all necessary
> conditions of rotation: size, number of copies, how often
> files should be rotated and etc.) How such conditions are set
> for squid?
>
> Thanks a lot.
> Ilya
>
Received on Mon May 19 2003 - 01:01:12 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:44 MST