Closed f00d4tehg0dz closed 2 years ago
goaccess supports JSON formats, so you should be able to use this:
goaccess access.log --log-format='{"remote_address":"%h","http_version":"%H","request_url":"%U","request_type":"%m","request_time":"%T","http_referer":"%R","http_user_agent":"%u","http_host":"%v","status":"%s","content_type":"%M","timestamp":"%d:%t %^"}' --date-format=%d/%b/%Y --time-format=%T
Unsure as to why I'm getting so many failed requests over this data. I only want the request_url, timestamp, http_host, and remote_address. The dashboard and console show hundreds of invalid requests
This is my config file details
Slimmed-down example
The script I'm running inside of Ubuntu 20.04 LTS
zcat 1_*.gz | /home/ubuntu/goaccess/./goaccess -p goaccess_nginx_log.conf -access.log