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...
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
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!!
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.
Most helpful comment
Then you can use
@reboot /path/to/shell.script
in the cron instead of specifying a time.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.