goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

Allow hiding specific URLs

Open mpldr opened this issue 2 years ago • 2 comments

Hi, I have a project that uses a heartbeat to index.php?ajax-proxy=… which I'd like to remove from being part of the evaluation, since right now the Top Requested files pretty much consist of nothing but ajax-proxy Is it possible to define some "StartsWith" Patterns that can be excluded?

"formal" Feature-Request

The Problem

  • some websites send requests that shouldn't necessarily be part of the analysis
  • it would be better to just "hide" them instead of not logging them

Proposed Solution

  • adding some "simple" exclusion conditions like:
    • Starts with
    • Contains
    • Ends with

mpldr avatar May 10 '22 08:05 mpldr

Thanks for suggesting that. I'm curious, is there a reason why you would like to hide them but still count them? I was thinking you could do some pre-processing to ignore those requests, e.g., grep -v 'index.php?ajax-proxy' access.log | goaccess - --log-format=COMBINED

allinurl avatar May 12 '22 00:05 allinurl

why you would like to hide them but still count them

For one they are obviously valid requests, secondly they can be very interesting to find out general activity.

mpldr avatar May 12 '22 10:05 mpldr