I want to do this in my production server so it should be light weight (so things like npm forever is not OK even if it is almost there), and be simple (so supervisor is out ).
I run goaccess behind an nginx proxy using ssl with admin pwd auth. I use a systemd service to start and run gopanel as a goaccess process manager but I think you can do similarly with goaccess directly. You can see my example configs and service files for gopanel in etc folder. This all fits nicely into a working nginx server. I created gopanel so I could have multiple realtime log files available online on my server. It's a pretty simple efficient setup.
@neocogent Thanks for posting that!
@xiangnanscu Alternatively you can simply running goaccess with the default in-memory storage (assuming your dataset fits in mem) and running it as a daemon should do the trick. e.g.,
goaccess /var/log/apache2/access.log -o /usr/share/nginx/html/site/report.html --real-time-html --daemon
@neocogent @allinurl thank you
@neocogent Thanks for posting that!
@xiangnanscu Alternatively you can simply running goaccess with the default in-memory storage (assuming your dataset fits in mem) and running it as a daemon should do the trick. e.g.,
goaccess /var/log/apache2/access.log -o /usr/share/nginx/html/site/report.html --real-time-html --daemon
How to stop it? Thank you
@goalbased pkill goaccess
@allinurl Does it refresh the page everytime..??
I have ran the --daemon , but not getting the latest-counts on dashboard.
@sivasankarsani737 make sure it's in fact connected to the WS server. The easiest indicator is the green dot next to the settings icon on the HTML report. You can also check the network WS tab under your browser's dev tools.