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

Is that possible to add response code (200, 404, 407, etc) to the result view? #80

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hey, Is that possible to add response HTTP codes and TYPE (get, post) to the final table from squid logs? If so, please, help me with a little example. My current squid log was configured as standard (squid)

1429858356.113    240 10.2.12.166 TCP_MISS/200 7024 CONNECT encrypted-tbn0.gstatic.com:443 testuser DIRECT/173.194.71.138 -
1429858356.131    258 10.2.12.166 TCP_MISS/200 7166 CONNECT encrypted-tbn3.gstatic.com:443 testuser DIRECT/173.194.71.138 -
1429858356.131      0 10.2.12.166 TCP_DENIED/407 3808 GET http://pki.google.com/GIAG2.crl - NONE/- text/html
1429858356.142    269 10.2.12.166 TCP_MISS/200 6522 CONNECT encrypted-tbn3.gstatic.com:443 testuser DIRECT/173.194.71.138 -

squid.conf

access_log /var/log/squid/access.log squid

If possible please point me to output configuration / tutorial. Thank you!

ghost commented 9 years ago

Could i bump it?

darold commented 9 years ago

Sorry for responding so late and yes don't hesitate to bump if I don't replied in two weeks, this is mostly because the issue was gone out of my scope.

SquidAnalyzer is already showing statistics about some response code. Do you mean a statistic report per response code in addition of HIT|MISS and DENIED? And what are you calling the "final table"?

Best regards,