GoAccess – Visual Web Log Analyzer
goaccess.io
goaccess.io
Don't need to give up users privacy and force them to download an intrusive proprietary JavaScript code on their browser to monitor their behaviors and in some cases pass on private information without their knowledge to third party services.
Hopefully we can go back to old days relying more on these kind of tools to just get anonymized statistics.
You have to be careful though if you are processing API request and capturing personally identifiable information. Your logs also need to be GDPR compliant.
The "official" answer seems to be to filter the log file with grep for your condition (page /foo) and generate a separate report. Which is unwieldy, I would love to be able to click through.
Does AWstats handle this?
Overall, it is fast, intuitive and customizable.
It will parse according to the log format [1].
For example
$sed -n '/'$(date '+%d\/%b\/%Y' -d '1 week ago')'/,$ p' access.log | goaccess -a -
$awk '$8=$1$8' access.log | goaccess -a -
$goaccess access.log --log-format='%^[ %^[ %^[%x.%^] %^ %^/%^/%^/%^/%L %^ %h:%^"%r" %s %v %^ "%u|%^" %^ %^ %^ %^=%b' --date-format=%s --time-format=%s
These are just some example but I feel using sed or awk for text processing you can feed most of the common access logs with goaccess.