allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.45k stars 1.11k forks source link

Goaccess Websocket issue #2707

Open Hyungzn opened 2 months ago

Hyungzn commented 2 months ago

Hello.

I trying to use Goaccess Web using 8081 port, but i can't Here is my configure and network state when I using web socket commend. Please help me

[root@CDN-VOD08 ~]# goaccess /var/log/nginx/access.log -o /var/www/html/report.html --real-time-html --port=8081 [RENDERING /var/log/nginx/access.log] {3,904,361} @ {20,549/s} WebSocket server ready to accept new client connections

[root@CDN-VOD08 ~]# netstat -anp | grep 8081 tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 39944/goaccess
tcp 0 0 121.156.46.31:8081 61.74.74.42:55876 TIME_WAIT -
tcp 0 0 121.156.46.31:8081 61.74.74.42:55874 TIME_WAIT -

![Uploading web.png…]()

allinurl commented 2 months ago

Are you seeing an error message in the browser's console via the dev tools? Also, are you accessing the report via HTTPS? Is GoAccess running on the same server where the report is being hosted? Feel free to post a screenshot of the browser if it helps.

0bi-w6n-K3nobi commented 1 month ago

hi @Hyungzn

For real-time GOAccess running, do you need specify more options like --origin= and --ws-url=. You can read about this at Manual page here at Server Option. About --origin= only @allinurl you can ask if accept IP or only Hostname.

In truly, I just did try running only with Apache or NGinX in front-end. I don't know if this is possible without front-end http service.