Re: [squid-users] SARG: The date range passed as argument is not formatted as dd/mm/yyyy-dd/mm/yyyy

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 19 Jul 2011 10:25:32 +1200

>>>>> chinner999 7/18/2011 4:22 PM >>>
>>Hi guys,
>>SARG question.
>>
>>Setup
>>Ubuntu v10.00
>>Squid v2.2.7.1
>>Squid v3.1.6
>>
>>Followed instructions here to setup SARG.
>>(http://www.udiniqgeek.com/sarg_ubuntu.html) - updated /var/log/squid
>>to /var/log/squid3
>>
>>
>>sudo /usr/sbin/sarg-daily-report
>>
>>I'm getting the following error.
>>SARG: The date range passed as argument is not formatted as
>>dd/mm/yyyy-dd/mm/yyyy.
>>
>>
>>
>>/usr/sbin/sarg-daily-report
>>
>>TODAY=$(date +%d/%m/%Y)
>>YESTERDAY=$(date –date “1 day ago” +%d/%m/%Y)
>>sarg /var/log/squid3/access.log -o /var/www/squid-reports/daily -z -d
>>$YESTERDAY-$TODAY
>>/usr/sbin/squid3 -k rotate
>>exit 0
>>
>>Any suggestions?
>>

 Run the date command manually by itself and see what it is producing.
 Perhapse follow its helpfule message and use --help to find a format
 token that will work.

 Amos
Received on Mon Jul 18 2011 - 22:25:37 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 20 2011 - 12:00:03 MDT