Tuesday, February 12, 2013

sarg report

I am getting below mention error while generating sarg report through webmin.
Please guide me.

Generate Report



Now generating Sarg report from Squid log file /var/log/squid/access.log and all
rotated versions ..

sarg -l /var/log/squid/access.log.1.gz
SARG: Decompressing log file: /var/log/squid/access.log.1.gz > /tmp/sarg-file.in
(zcat)
SARG: Records in file: 22053, reading: 0.00%
SARG: Records in file: 22053, reading: 22.67%
SARG: Records in file: 22053, reading: 45.35%
SARG: Records in file: 22053, reading: 68.02%
SARG: Records in file: 22053, reading: 90.69%
SARG: No records found
SARG: End
SARG: Records in file: 22053, reading: 100.00%
sarg -l /var/log/squid/access.log
SARG: Records in file: 4941, reading: 0.00%
SARG: No records found
SARG: End
SARG: Records in file: 4941, reading: 100.00%
.. Sarg finished, but no report was generated. See the output above for details.


Reply from Group Members

You should upgrade sarg. Version 2.2.3.1 is outdated, is very picky about
the
data it read and contains numerous bugs.

Sarg letest version 2.2.7.1.

Link as per below.

http://prdownloads.sourceforge.net/sarg/sarg-2.2.7.1.tar.gz?download

Please check. 

2 comments:

  1. you can try with sarg -l /var/log/squid/access.log.1.gz -zx
    where
    -l -> filename
    -x -> Writes debug messages to stdout
    -z -> Writes process messages to stdout.
    always put -zx in sarg when you run command

    ReplyDelete
  2. I also got the same error by watching this Jboss Tutorial video i cleared the error.

    ReplyDelete