goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

For this simple basic common scenario, is goaccess a solution?

Open gumpjt opened this issue 2 years ago • 1 comments

For example, In /data/log/, there is a auto update file access.log (update by rsync, pull data from remote server to /data/log/access.log) I just want to run a daemon goaccess, Monitor access.log changes in real time, and provide web access to the latest changes in the html report.

I tried to run it: goaccess --time-format=%T --date-format=%d/%b/%Y --log-format='%h [%d:%t %^] "%r" %s %b "%R" "%u" %h %T' -o /output/log.html --real-time-html --log-file=/data/log/access.log --daemonize --port=56811 --db-path=/path/to/db/ --restore --persist --geoip-database=/path/to/GeoLite2-City.mmdb

and I found it WILL UPDATE nothing when I visit the html report.

Is there any ideas on this? How to meet this need by using goaccess?

Thanks!

gumpjt avatar Mar 07 '23 10:03 gumpjt

Sounds like the browser is unable to reach the WS server. What output are you getting in the browser's console?

allinurl avatar Mar 07 '23 14:03 allinurl