Re: [squid-users] oot: about sarg

From: Chris Robertson <crobertson_at_gci.net>
Date: Thu, 22 Jan 2009 09:40:30 -0900

░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
> still same :((
> --------------
> Squid User Access Reports
>
> FILE/PERIOD CREATION DATE USERS BYTES AVERAGE
> 22Jan2009-22Jan2009 Thu Jan 22 07:32:48 EST 2009 5 2.71M 543.46K
> 21Jan2009-22Jan2009 Thu Jan 22 07:01:10 EST 2009 96 1.71G 17.83M
> 21Jan2009-21Jan2009 Wed Jan 21 23:01:11 EST 2009 96 1.71G 17.83M
> 20Jan2009-21Jan2009 Wed Jan 21 06:30:15 EST 2009 95 3.06G 32.30M
> ---------------
> my crontab are :
> root_at_castor:/home/mirza# crontab -l
> 0 0 * * * /usr/local/squid/sbin/squid -k rotate
> 1 * * * * /usr/bin/sarg -f /etc/squid/sarg.conf
>

Try using a crontab entry of...

1 * * * * /usr/bin/sarg -d $(date +%d/%m/%Y)-$(date +%d/%m/%Y) -f
/etc/squid/sarg.conf

...to limit each report to a single day.

Chris
Received on Thu Jan 22 2009 - 18:37:56 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 23 2009 - 12:00:02 MST