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

Detail user statisic page: can not see the full url address #102

Closed tierpod closed 9 years ago

tierpod commented 9 years ago

Hello, darold! Can I see full url on detail user statistic page? For example, my squid.log contains:

1441880165.993     49 10.x.x.x TCP_MISS/200 38048 GET http://fonts.gstatic.com/s/ptsansnarrow/v7/UyYrYy3ltEffJV9QueSi4UU-p1xzoRgkupcXIqgYFBc.woff2 username HIER_DIRECT/173.194.122.207 font/woff2

but my squidanalyzer page for user 'username' contains only fonts.gstatic.com (expected full url: http://fonts.gstatic.com/s/ptsansnarrow/v7/UyYrYy3ltEffJV9QueSi4UU-p1xzoRgkupcXIqgYFBc.woff2).

darold commented 9 years ago

Hi,

No, the goal of SquidAnalyzer is to aggregate log entries to compute statistics of use. It can not stores all URLs, this is not realistic and will fully duplicate what's is on your log file.

Best regards,

tierpod commented 9 years ago

Thank for the reply! Have a nice day!

john-mooduck commented 4 years ago

hey man, thats sucks you know 'cause the web-interface is really pretty and all, but it gives me none of useful informantion. i can't tell my superior to go connect via ssh and do something like this cat /var/log/squid/access.log | grep 'watch?' if he wants to know what users are been watching on the youtube. So what im saying is that i need a little help here, im not asking you to change "the project goal" look i found this one here https://github.com/darold/squidanalyzer/blob/master/SquidAnalyzer.pm#L410 so it's if im undersand correctly it's a PCRE that filtering access.log im tried some online tools to change it but no luck, im not a programmer, you see, im just a low-end tech guy So how the regex should be changed to have full url in the report?

darold commented 4 years ago

With SquidAnalyzer you will will have statistics about youtube access and if you enable user details you will have additional per user statistics. It will show you access to youtube or any other web site per user. If you want to know which user access to a certain video you have to look at the log file.

I have a plan to build a dynamic interface to allow real time look at squid activity but unfortunately I don't have enough spare time for that.

john-mooduck commented 4 years ago

im overlooked that option my bad. Thank you man for what you doing and for answering on this necropost.