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

Multiple log files #149

Closed roshanroche closed 7 years ago

roshanroche commented 8 years ago

1st of all thank you for the wonderful log analyzer. i would like to know how can i use multiple access log files. if you can give me an example. even with the latest files i am getting SA_CALENDAR_SA on top while iam on users access page.

Thank you.

darold commented 8 years ago

To parse multiple log files just give them at command line as follow:

squid-analyzer ... /var/log/squid/access.log.2 /var/log/squid/access.log.1 /var/log/squid/access.log

If you have SA_CALENDAR_SA on top of a report this is because squid-analyzer exit abnormally. Do you have any error message or a remaining /tmp/squid-analyzer.pid file?

Regards,

roshanroche commented 8 years ago

even .gz format log file i can input at command line? no there is no error and remaining pid file. this SA_CALENDAR_SA appears only on individual network and user reports eg: http://reportserver/squidreport/2016/users/192.168.1.54/192.168.1.54.html ---- here on top of the page http://reportserver/squidreport/2016/networks/192.168.1.0/192.168.1.0.html ------- here on top of the page

darold commented 8 years ago

Yes gzipped file are supported.

About SA_CALENDAR_SA appearing on individual network and user reports, this is a "normal" behavior but it need to be removed. I missed that because with default CSS it is not visible. You need to override the CSS and JS files with the one from last release.

roshanroche commented 8 years ago

Thanks for the reply... where can i find the latest js and css files? i have the ones which was bundled with 6.5 version. one more issue i wanted to ask you if u dont mind. spaces are not allowed in full user names. how do i get full user name on individual reports? currently it shows firstname_SPC_last name.. is there any format i should follow in user-alias file?

roshanroche commented 8 years ago

Sir, Any solution for this issue? Thanks

darold commented 8 years ago

Commits aa7b70a and 81392c8 might solve this issue. Thanks for the report and sorry for the response delay.

Best regards,

roshanroche commented 8 years ago

Dear Darold, as usual a perfect job done.. its working cool! thanks a lot.

roshanroche commented 8 years ago

Dear Darold, one more thing u can add in the tooltip link on Top Denied page ,user name space still appears. may be the following will fix the issue on line 5306. please check before committing this is only my observation

                                    my $usr_lbl = $user;
                $usr_lbl =~ s/_SPC_/ /g;
        print $out "<tr><td>$usr_lbl</td><td>$denied_stat{$u}{users}{$user}</td></tr>\n";
darold commented 8 years ago

Commit 719871c apply your fix. Thanks.