How to configure goaccess for real-time report

2.3k Views Asked by At

Started using GoAccess recently and am able to access console dashboard and even get static html page. But would like to have real-time reports on the server but every time I try to generate static html or real time report it always opens websocket and wait for users inputs.

# goaccess /var/log/httpd/access_log -o /var/www/html/report.html
 [PARSING /var/log/httpd/access_log] {92,75,851} @ {14,794/s}
WebSocket server ready to accept new client connections
1

There are 1 best solutions below

2
On

Was able to solve this as follows and now whole process runs in background. Now will proceed to make it as a service which will auto start when server reboots

goaccess /var/log/httpd/access_log -o /var/www/html/report.html --real-time-html --daemonize