-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
goaccess not running in --real-time-html #737
Comments
Can you please post the output of your browser's console. Thanks. |
after some period of time there is an error in browser's console :
|
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 |
Were you able to output real-time? |
no, i wasn't :(
|
Are you behind some sort of proxy? can you please try telnet'ing to that IP and that port? Also, can you run the following and post the output here?
|
Hi, I have same issue. Static html page won't update auto or even after refreshing. I checked console and it shows this error.
I used this command to generate real time report. I opened port 7890 with this command. But still same issue. I'm using serverpilot.io and cloudflare. Its using nginx in front of apache on server. here is result for dhclient 507 root 6u IPv4 10989 0t0 UDP *:68
sshd 710 root 3u IPv4 34347 0t0 TCP *:22 (LISTEN)
sshd 710 root 4u IPv6 34349 0t0 TCP *:22 (LISTEN)
sshd 1052 root 3u IPv4 314476 0t0 TCP 205.***.***.***:22-> 182.185.**.***:12797 (ESTABLISHED)
sp-agent 2003 root 4u IPv4 289138 0t0 TCP 205.***.***.***:3037 9->35.186.205.226:443 (ESTABLISHED)
sp-agent 2003 root 6u IPv4 345957 0t0 TCP 205.***.***.***:3430 6->104.198.211.92:443 (ESTABLISHED)
sp-stats 2373 root 4u IPv4 353412 0t0 TCP 205.***.***.***:3462 8->104.198.211.92:443 (ESTABLISHED)
sshd 2411 root 3u IPv4 343883 0t0 TCP 205.***.***.***:22-> 182.185.**.***:1068 (ESTABLISHED)
monitor 2493 root 3u IPv4 128167 0t0 TCP 205.***.***.***:5513 5->104.154.33.168:2010 (ESTABLISHED)
sshd 2610 root 3u IPv4 348214 0t0 TCP 205.***.***.***:22-> 182.185.**.***:2418 (ESTABLISHED)
sshd 2873 root 3u IPv4 353164 0t0 TCP 205.***.***.***:22-> 118.212.132.227:43551 (ESTABLISHED)
sshd 2874 sshd 3u IPv4 353164 0t0 TCP 205.***.***.***:22-> 118.212.132.227:43551 (ESTABLISHED)
sshd 2893 root 3u IPv4 353506 0t0 TCP 205.***.***.***:22-> 59.45.175.56:43464 (ESTABLISHED)
sshd 2894 sshd 3u IPv4 353506 0t0 TCP 205.***.***.***:22-> 59.45.175.56:43464 (ESTABLISHED)
master 3132 root 12u IPv4 23361 0t0 TCP 127.0.0.1:25 (LISTEN )
mysqld 3868 mysql 17u IPv4 25934 0t0 TCP 127.0.0.1:3306 (LIST EN)
httpd 4857 root 3u IPv4 28033 0t0 TCP 127.0.0.1:81 (LISTEN )
nginx 5011 root 17u IPv4 35685 0t0 TCP *:80 (LISTEN)
nginx 5011 root 18u IPv6 35686 0t0 TCP *:80 (LISTEN)
nginx 29952 www-data 3u IPv4 353422 0t0 TCP 205.***.***.***:80-> 162.158.79.165:30112 (ESTABLISHED)
nginx 29952 www-data 15u IPv4 353007 0t0 TCP 205.***.***.***:80-> 162.158.92.50:25877 (ESTABLISHED)
nginx 29952 www-data 16u IPv4 353683 0t0 TCP 205.***.***.***:80-> 162.158.88.192:14037 (ESTABLISHED)
nginx 29952 www-data 17u IPv4 35685 0t0 TCP *:80 (LISTEN)
nginx 29952 www-data 18u IPv6 35686 0t0 TCP *:80 (LISTEN)
nginx 29952 www-data 19u IPv4 353144 0t0 TCP 205.***.***.***:80-> 162.158.91.3:33829 (ESTABLISHED)
nginx 29952 www-data 20u IPv4 353440 0t0 TCP 205.***.***.***:80-> 162.158.91.237:28868 (ESTABLISHED)
nginx 29953 www-data 3u IPv4 353295 0t0 TCP 205.***.***.***:80-> 172.68.58.45:25656 (ESTABLISHED)
nginx 29953 www-data 8u IPv4 353080 0t0 TCP 205.***.***.***:80-> 162.158.91.231:20428 (ESTABLISHED)
nginx 29953 www-data 13u IPv4 353597 0t0 TCP 205.***.***.***:80-> 162.158.91.237:26638 (ESTABLISHED)
nginx 29953 www-data 17u IPv4 35685 0t0 TCP *:80 (LISTEN)
nginx 29953 www-data 18u IPv6 35686 0t0 TCP *:80 (LISTEN)
nginx 29953 www-data 19u IPv4 353695 0t0 TCP 205.***.***.***:80-> 162.158.92.14:18796 (ESTABLISHED)
nginx 29954 www-data 3u IPv4 353024 0t0 TCP 205.***.***.***:80-> 162.158.92.86:35243 (ESTABLISHED)
nginx 29954 www-data 6u IPv4 353313 0t0 TCP 205.***.***.***:80-> 162.158.69.127:31977 (ESTABLISHED)
nginx 29954 www-data 7u IPv4 353211 0t0 TCP 205.***.***.***:80-> 162.158.69.127:24322 (ESTABLISHED)
nginx 29954 www-data 8u IPv4 353655 0t0 TCP 205.***.***.***:80-> 162.158.91.237:14710 (ESTABLISHED)
nginx 29954 www-data 14u IPv4 353687 0t0 TCP 205.***.***.***:80-> 162.158.88.60:13097 (ESTABLISHED)
nginx 29954 www-data 15u IPv4 353691 0t0 TCP 205.***.***.***:80-> 162.158.89.95:19092 (ESTABLISHED)
nginx 29954 www-data 17u IPv4 35685 0t0 TCP *:80 (LISTEN)
nginx 29954 www-data 18u IPv6 35686 0t0 TCP *:80 (LISTEN)
nginx 29955 www-data 3u IPv4 353627 0t0 TCP 205.***.***.***:80-> 162.158.69.127:11895 (ESTABLISHED)
nginx 29955 www-data 6u IPv4 353639 0t0 TCP 205.***.***.***:80-> 162.158.91.237:19781 (ESTABLISHED)
nginx 29955 www-data 7u IPv4 353065 0t0 TCP 205.***.***.***:80-> 162.158.89.227:26824 (ESTABLISHED)
nginx 29955 www-data 8u IPv4 353193 0t0 TCP 205.***.***.***:80-> 162.158.74.133:14209 (ESTABLISHED)
nginx 29955 www-data 16u IPv4 353651 0t0 TCP 205.***.***.***:80-> 162.158.90.142:28079 (ESTABLISHED)
nginx 29955 www-data 17u IPv4 35685 0t0 TCP *:80 (LISTEN)
nginx 29955 www-data 18u IPv6 35686 0t0 TCP *:80 (LISTEN)
httpd 29962 www-data 3u IPv4 28033 0t0 TCP 127.0.0.1:81 (LISTEN )
httpd 29963 www-data 3u IPv4 28033 0t0 TCP 127.0.0.1:81 (LISTEN )
httpd 29964 www-data 3u IPv4 28033 0t0 TCP 127.0.0.1:81 (LISTEN )
httpd 30053 www-data 3u IPv4 28033 0t0 TCP 127.0.0.1:81 (LISTEN )
sshd 32051 root 3u IPv4 292215 0t0 TCP 205.***.***.***:22-> 182.185.**.***:11091 (ESTABLISHED)
sshd 32060 serverpilot 3u IPv4 292215 0t0 TCP 205.***.***.***:22-> 182.185.**.***:11091 (ESTABLISHED)
sshd 32274 root 3u IPv4 297153 0t0 TCP 205.***.***.***:22-> 182.185.**.***:11580 (ESTABLISHED)```` |
@Key7i Did you run
Also, if the machine running goaccess is reachable from the outside world through
|
Thanks for quick response. I used this command and it's working fine now. A stupid question maybe. How can i run this real-time report permanently? And after running this real-time command how can i keep using terminal? Thanks for this great tool. |
Glad that worked :) Usually it's best to use the public IP with
Great question, from v1.2 you can pass @muagkov please take a look at my previous response since @Key7i had the same issue. Feel free to reopen it if needed. |
I have the same issue. Tried all written above. nothing helped. Got the error : WebSocket connection to wss://ip:7890/ failed: WebSocket opening handshake timed out. What else could I try? thank you |
@trancef0rmer If you are using the latest version, you can try without
|
I'm using v.1.2 |
@trancef0rmer what's the output from your browser's console? |
It was Mixed Content. I tried over https. |
@trancef0rmer You will need to use |
It works !! |
Should we wait for some integration with grafana ? TY |
@trancef0rmer Glad that worked :) Should there be an integration with grafana? What are you looking to do with goaccess and grafana? |
Just asked )) |
@trancef0rmer np, always happy to help :) |
One more question |
@trancef0rmer no, goaccess and apache use different log formats. Please take a look at the man page for details on the specifiers. |
Hi, @allinurl ! |
@trancef0rmer This should do it:
|
Same thing ( |
@trancef0rmer for the line you posted above, it does work for me. You can try:
Does it work parsing that single line? |
thank you @allinurl |
@trancef0rmer You can try using |
thanks @allinurl, it works with |
@trancef0rmer can you please attach your access log with a substantial number of lines on it? |
I just set this custom |
This works perfectly fine for me with the log you posted above, please try:
|
@allinurl |
@trancef0rmer that's right, you only have one day worth of data. In a month and if you are not rotating your log, then your report will look similar to rt.goaccess.io. |
@allinurl |
@trancef0rmer Please take a look at this #673 |
Thanks @allinurl, |
Oh, I see now. It's FILENAME, anyway) |
@trancef0rmer you can definitely do it with awk. I believe there's an example in the man page where you can extract a field and place it somewhere else. |
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 likeroot@pa:~# goaccess -f /var/log/apache2/access.log -a -o /var/www/html/index.html
Please, help me to make it real time
The text was updated successfully, but these errors were encountered: