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

my squidanalyzer stop genertate new reports #163

Closed jeancpo closed 7 years ago

jeancpo commented 7 years ago

Hello i run 2 servers each with squid 3.4 in debian 8.8, configured with squidanalyzer 6.5 but in one stop in month march, i try run manualy and nothing, also update recent version 6.6 and nothing can help me this message in debug

SquidAnalyzer version 6.6 SQUID LOG HISTORY TIME: Fri Nov 23 08:19:08 4718885 - HISTORY OFFSET: 5212715 Starting to parse logfile /var/log/squid3/access.log.1. DEBUG: this file will not be parsed: /var/log/squid3/access.log.1, line after offset is older than expected: 1494254106.193 < 148851488549948. No new log registered... DEBUG: the log statistics gathering took: 0 wallclock secs ( 0.00 usr + 0.01 sys = 0.01 CPU) Skipping HTML build. DEBUG: generating HTML output took: 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) DEBUG: total execution time: 0 wallclock secs ( 0.00 usr + 0.01 sys = 0.01 CPU)

thnaks.

darold commented 7 years ago

Please post here the content of file /var/www/squidanalyzer/SquidAnalyzer.current it seems to be corrupted.

jeancpo commented 7 years ago

Hello my SquidAnalyzer.current

48851488549948 5212715

darold commented 7 years ago

Ok, it seems to have stopped working since Fri Mar 3 15:05:48 2017, you can replace its content by the following:

1488549948      5212715

and execute squid-analyzer again.

Note that it need a tabulation to separate the two values.

Let me know.

jeancpo commented 7 years ago

ok ready now, thanks.

darold commented 7 years ago

Ok, upgrading to v6.6 might solve the corruption.