Closed abid76 closed 1 month ago
Please try the following, it should do the job:
# goaccess access.log --log-format='%h %^[%d:%t %^] "%r" %s %b %v "%R" "%u"%^' --date-format=%d/%b/%Y --time-format=%T
Thanks 🙂 Here's the complete working script (with double quotes escaped):
#!/bin/bash
LC_TIME="en_US.UTF-8" bash -c "goaccess $1 --log-format='%h %^[%d:%t %^] \"%r\" %s %b %v \"%R\" \"%u\"%^' --date-format=%d/%b/%Y --time-format=%T --geoip-database dbip-city-lite-2024-05.mmdb"
I'm using goaccess 1.9.2 on MacOS Sonoma.
Everything works fine, but unfortunately the Browsers and Operating systems aren't recognized.
In https://github.com/allinurl/goaccess/issues/555#issuecomment-331137188 it's proposed to use
--log-format=COMBINED
for version 1.2 but this didn't work for me.The report shows 92 percent unknown Browsers and Operating systems.
I run goaccess with no custom configuration using this script:
Here's some lines from the access log: