goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

realtime issues through HAProxy

Open LaJobe opened this issue 3 years ago • 2 comments

Hi, I'm running Goaccess to analyse Apache2 logs. It works great as long as I'm on the LAN. When I want to read the realtime report.html page from the internet, I don't get the green dot and page is static. My setup is made of Apache web servers behind a HAProxy load balancer.

I've been struggling and testing various configuration for 3 days, but I still don't understand how to correctly use the ws-url setting and what do I need to add as proxy settings in HAProxy and/or the vhost so the WebSocket on port 7890 can do is job as expected.

I would appreciate very much if one of the expert around could help.

Thanks

LaJobe avatar Feb 25 '22 21:02 LaJobe

Sorry for the delay. Could you please share what's the out from your browser's console. Also, please share how you're running goaccess server command line options. Thanks

allinurl avatar Mar 03 '22 00:03 allinurl

Hi @LaJobe .

Well... I is thinking with my buttons...

If you use HAProxy then you must be have 2 or more Apache2 Servers... Right? So, do you need running GOACCESS each Apache2 Server... And therefore different ports, for each server, to see through HAProxy.

For Ex:

HAProxy @7891 port    ==>  Apache2 Server 1~~@7890~~@7891 port         @7892 port    ==>  Apache2 Server 2~~@7890~~@7892 port          ...            ...         @7890+N port  ==>  Apache2 Server N~~@7890~~@7890+N port

Otherwise, do you need only one of Apaches see LOGs all of them. And so only one GOACCESS run at these.

Another note about real-time processing -- Did you setup HAProxy for WebSocket type connection at ~~7809~~ 7890 port? This port is not a ordinary HTTP connection, but a WebSocket connection.

I hoped that could helped.

0bi-w6n-K3nobi avatar Mar 15 '22 19:03 0bi-w6n-K3nobi