Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend way to run goaccess realtime in the background? #1327

Closed
xiangnanscu opened this issue Dec 6, 2018 · 7 comments
Closed

Recommend way to run goaccess realtime in the background? #1327

xiangnanscu opened this issue Dec 6, 2018 · 7 comments

Comments

@xiangnanscu
Copy link

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 ).

@xiangnanscu xiangnanscu changed the title Recommand way to run goaccess realtime in the background? Recommend way to run goaccess realtime in the background? Dec 6, 2018
@neocogent
Copy link

neocogent commented Dec 6, 2018

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.

@allinurl
Copy link
Owner

allinurl commented Dec 7, 2018

@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

@xiangnanscu
Copy link
Author

@neocogent @allinurl thank you

@goalbased
Copy link

@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

@allinurl
Copy link
Owner

allinurl commented Jun 3, 2020

@goalbased pkill goaccess

@sivasankarsani737
Copy link

@allinurl Does it refresh the page everytime..??

I have ran the --daemon , but not getting the latest-counts on dashboard.

@allinurl
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants