goaccess: goaccess not running in --real-time-html

Hello, I have a problem with “–real-time-html”

when i use command: root@pa:~# goaccess -f /var/log/apache2/access.log -a -o /var/www/html/index.html --real-time-html i get in terminal the following: root@pa:~# goaccess -f /var/log/apache2/access.log -a -o /var/www/html/index.html --real-time-html WebSocket server ready to accept new client connections

but on my index.html i have static page with “Last Updated” when i use a command, not real time page.

so when i use command root@pa:~# goaccess -f /var/log/apache2/access.log -a -o /var/www/html/index.html --real-time-html i have the same result like root@pa:~# goaccess -f /var/log/apache2/access.log -a -o /var/www/html/index.html

Please, help me to make it real time

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 42 (20 by maintainers)

Most upvoted comments

Glad that worked 😃 Usually it’s best to use the public IP with --ws-url rather than the hostname just because some weird stuff can occur with the host not pointing to the right machine. For instance,

--ws-url=ws://205.***.***.***:7890 

Great question, from v1.2 you can pass --daemonize, goaccess will keep running and you will be able to use the terminal as usual.

@muagkov please take a look at my previous response since @Key7i had the same issue. Feel free to reopen it if needed.

Sounds like it’s not able to reach the server on 104.199.XXX.XXX:7890. Is this the right IP address where GoAccess is running? Also, since it listens on port 7890, please make sure the port is opened.

If you are opening the report through https, you will need to run goaccess with --ssl-cert=<cert.crt> and --ssl-key=<priv.key>.