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

Statistics per host only for the parent request #161

Closed dbareiro closed 6 years ago

dbareiro commented 7 years ago

Hi, Darold.

I would like to know if there is any way to view or configure SquidAnalyzer to identify only the URL to which the user accessed (the one typed in the browser). The idea would be that in the list of URLs shown for each host do not show the other requests triggered by the site to which the user pointed in the browser.

Is that possible?

Thanks in advance.

Kind regards, Daniel

darold commented 7 years ago

Hi Daniel,

I'm not sure to understand well. Do you mean to not append to statistics all pages/objects from a site but just the first access? In other term only the first access to a site will be registered and other subsequent access, let's says in the hour will not be parsed by SquidAnalyzer but just skipped ans so will not appears in statistics counters?

Regards,

dbareiro commented 7 years ago

Hi, Darold.

I'm not sure to understand well. Do you mean to not append to statistics all pages/objects from a site but just the first access? In other term only the first access to a site will be registered and other subsequent access, let's says in the hour will not be parsed by SquidAnalyzer but just skipped ans so will not appears in statistics counters?

Let me give you a context for this. The idea would be to keep a statistic of the sites to which a user has entered directly (only those that the users typed in the browser).

Let's suppose I enter in www.infobae.com. What happens here is that Infobae generates for the user a lot of requests to other sites (Facebook, cdns, adservers, etc). The idea would be that in the statistics of access only be considered Infobae (which is the site that the user typed in his/her browser). Would that be possible?

Let me know if it's clearer now, please.

Thanks for your time

Kind regards, Daniel

darold commented 6 years ago

It seems difficult to achieve, but perhaps possible with an http like access log and with referer information.