-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to hide referrers from report (e.g., local sites). #778
Comments
Quick and dirty patch to add an option for that... I tested it only making a html report, hope it is not too dirty :-) |
Thanks for sending this in. I can certainly apply the patch. Though, I'm still wondering if perhaps using a shorter command line option is the way to go. e.g., |
That sounds great, an option name like "--hide-referer" would be more distinguishable from the "--ignore-*" options and would it would be exactly what the option is about: hiding some lines in a subreport, not excluding them from the overall sum. |
This has been updated. Added This also allows the ability to use wild cards. For instance,
Thanks |
I've got 80...90% local referrers within a website.
With
goaccess my.log -a -o report.html
I get a nice report including all requests. But in the referrer urls and referrer sites reports, I only find referrers within the same website, as there are so many. Works as intended.
The report including the local referrers is correct, but not nice - I'd like to see only the interesting referrers directing from external websites to the local site.
So I try a
goaccess my.log -a --ignore-referer=www.example.com --ignore-referer=example.com -o report.html
and get nice referrer urls and referrer sites reports without the local site referrers.
Only problem: the ignore-referer option makes goaccess completely ignore the log lines containing these referrers (correctly behaviour as described in the .conf file: "Ignore referers from being counted"), resulting in a report that is missing many hits.
An additional or changed option would be nice: counting the loglines as hits, but ignoring their referrer information
The text was updated successfully, but these errors were encountered: