Re: [squid-users] log file and analysis report

From: Adrian Chadd <[email protected]>
Date: Tue, 16 Oct 2007 18:58:30 +0800

You need to rotate the log file.

What you need to do is:

* squid -k rotate
* sleep for a few seconds to let squid do what it needs to
* run sarg on the old log file (access.log.0.)

As for the rest, I can't (easily) help you with. I don't run sarg.

Adrian

On Tue, Oct 16, 2007, Arun Shrimali wrote:
> Dear All,
>
> I am using Squid 2.6 Stable 4 and Sarg 2.2.2 for report generation.
> there was no proper 'how to' for setting up the auto generation of the
> sarg report, thus I have put sarg command in hourly cron to auto
> generate the report, which is working fine. It is hourly update the
> report.
>
> but the problem is:
> 1. for the same log file it create different report with change of the
> day as follows
> 2007Oct07 - 2007Oct14
> 2007Oct07 - 2007Oct13
> 2007Oct07 - 2007Oct12
> 2007Oct07 - 2007Oct11
> where as I would like to have the single report to be continue for
> next day also
>
> 2. Squid automatic start new log file on start of the week i.e. on
> sunday, where as I would like to have single log file for a month,
> thus ultimately can have single analysis report for a month.
>
> can anybody help me to configure accordingly.
>
> regards
>
> Arun

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level bandwidth-capped VPSes available in WA -
Received on Tue Oct 16 2007 - 04:57:36 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT