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

I can not activate --real-time-html on Cron #1508

Closed
SergioDG-YCC opened this issue Jul 19, 2019 · 3 comments
Closed

I can not activate --real-time-html on Cron #1508

SergioDG-YCC opened this issue Jul 19, 2019 · 3 comments

Comments

@SergioDG-YCC
Copy link

SergioDG-YCC commented Jul 19, 2019

I can not make it work --real-time-html on Cron. This is my code:
/usr/bin/goaccess -f /home/microtvar/web/XXXX/public_html/184/analytics/3633/nginx/access.log > /home/microtvar/web/XXXX/public_html/report3633.html --log-format=COMBINED --real-time-html
If I remove it --real-time-html works perfectly, but without realtime...

@allinurl
Copy link
Owner

Are you using v1.3?

If so, can you please try this:

/usr/bin/goaccess - /home/microtvar/web/XXXX/public_html/184/analytics/3633/nginx/access.log -o /home/microtvar/web/XXXX/public_html/report3633.html --log-format=COMBINED --real-time-html

@SergioDG-YCC
Copy link
Author

Yes! This has worked for me. How often would you say that I should adjust the cron ?. I have noticed that the file remains the same because the GoAccess service is already active. The cron only works to monitor, and start it in case of system restart or some failure. Also, in parallel, I can generate different cron, with the previous code. How much RealTime can I start in parallel? Thank you!!

Captura

@allinurl
Copy link
Owner

The cron only works to monitor, and start it in case of system restart or some failure.

Then you can use @reboot /path/to/shell.script in the cron instead of specifying a time.

How much RealTime can I start in parallel?

Please take a look at this post to see how to run multiple instances of goaccess.

Closing this, feel free to reopen it if needed.

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

2 participants