Goaccess: I can not activate --real-time-html on Cron

Created on 19 Jul 2019  ·  3Comments  ·  Source: allinurl/goaccess

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

command-line options cron

Most helpful comment

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.

All 3 comments

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!!

Captura

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

securixhk picture securixhk  ·  3Comments

LoanDEV picture LoanDEV  ·  3Comments

g33kphr33k picture g33kphr33k  ·  3Comments

domainoverflow picture domainoverflow  ·  3Comments

ychunc picture ychunc  ·  3Comments