Re: [squid-users] Logrotate

From: Igor Luiz Oliveira de Souza <igorluiz_at_solic.com.br>
Date: Tue, 5 Jan 2010 12:56:59 -0300

Hello Roland,

If using Linux, just put something like this on your crontab:

1 0 * * * /usr/local/squid/sbin/squid -k rotate

( Define the numbers of rotate files you want to get in squid.conf
(logfile_rotate) based on your retention needs)

Hope this help,

--
Igor Luiz
2010/1/5 Roland Roland <R_O_L_A_N_D_at_hotmail.com>:
> Hello,
>
> i'm looking to do the following hope someone could help me if its actually
> feasible..
> each day at 8 AM, i want access.log to be renamed to
> access.log.DateOfPreviousDay
> that way on any given day access.log would only contains hits of the current
> day..
> the reason i want this, is that i have SARG set to read everything from
> /var/log/squid/access.log and outputs it in a nice graphical interface..
> though the problem is that i have hits from every day appended to the hits
> of the previous day hence the request above..
> hope this all makes sense to you...
>
> thanks in advance:)
>
>
-- 
Igor Luiz Oliveira de Souza
Solic Tecnologia e Sistemas
(77) 8829-7678
igorluiz_at_solic.com.br
Received on Tue Jan 05 2010 - 15:57:12 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 05 2010 - 12:00:02 MST