Skip to content
Advertisement

How to filter properly my access logs with GoAccess?

I want to generate a report with only the POST /xmlrpc.php requests, so I run the following command :

zcat access.log.*.gz | grep 'POST /xmlrpc.php' | goaccess -a -o report-xmlrpc.html

The results of the report are not all displayed (in the graph I see only 9 days, but I checked on the others logs and I have POST /xmlrpc.php requests almost every days (30 in total) ).

Am I using zat / grep / goaccess wrong ?

Advertisement

Answer

You are parsing only *.gz logs, I assume you want to parse all of them (compressed and not compressed), try this instead:

zgrep -h 'POST /xmlrpc.php' access.log* | goaccess -a -o report-xmlrpc.html
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement