darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Rotated files are not analyzed because of HISTORY OFFSET #90

Closed aostrovsky closed 9 years ago

aostrovsky commented 9 years ago

[root@proxy ~]# /usr/local/bin/squid-analyzer -d /var/log/squid/access.log-20150630 Starting to parse logfile /var/log/squid/access.log-20150630. DEBUG: this file will be parsed, no history found. Reading file /var/log/squid/access.log-20150630 from offset 0 to end. SET START TIME: Mon Jun 29 03:21:01 2015 ....... COMPLETE with no issues

[root@proxy ~]# /usr/local/bin/squid-analyzer -d /var/log/squid/access.log-20150701 HISTORY TIME: Tue Jun 30 03:06:01 2015 - HISTORY OFFSET: 198903010 Starting to parse logfile /var/log/squid/access.log-20150701. Reading file /var/log/squid/access.log-20150701 from offset 198903010 to end. No new log registered... DEBUG: the log statistics gathering took: 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) Skipping HTML build.

So have to remove /var/www/squidanalyzer/SquidAnalyzer.current

darold commented 9 years ago

Hi,

If you have your log file in common http format, last commit c7e4c8f might fix that long pending issue. Please use latest development code from github and let me know.

Regards,

darold commented 9 years ago

Please update to latest development code, there is two fixes in last commit 928ed13 that might fix your issue.