OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: laralar on January 12, 2020, 05:46:17 AM

Title: Live log view for HAProxy plugin?
Post by: laralar on January 12, 2020, 05:46:17 AM
This is not an issue, but more like a feature request.

Would it be too difficult to implement a Live Log view like the one the firewall has with filter option?

With many websites and HTTP services hosted, and many requests coming (every second, or minute, it is kind of difficult to follow up the log.

For some strange reason, I tried what I normally do in Ubuntu .

tail -f /var/log/haproxy.log

But it seems stuck in FreeBSD. Any hint why this could be happening?

Finally, I am using Map tables. And where there is a no match, it would be useful to see what is the key that is being trying to match.. This two may not be related to the plugin itself but to HA Proxy, but any help would be appreciated

Thanks,
Luis
Title: Re: Live log view for HAProxy plugin?
Post by: mimugmail on January 12, 2020, 06:48:28 AM
HAProxy logs circular in OPN so command has to be:


clog -f <filename>
Title: Re: Live log view for HAProxy plugin?
Post by: laralar on January 12, 2020, 12:21:13 PM
Thanks.. that did the trick..

Still I would love the Live view that the firewall has where I could put some filter  ;D
Title: Re: Live log view for HAProxy plugin?
Post by: fabian on January 12, 2020, 07:47:32 PM
For filtering add '| grep term', without the quotes after the given command for text filtering.
Title: Re: Live log view for HAProxy plugin?
Post by: laralar on January 17, 2020, 10:44:13 AM
Yep that did the trick.. however, it would be good to have it in the OPNsense UI, instead of having to log in into the terminal

Any idea where can I find the developer of this plugin to submit a feature request?  I am terribly newbie in OPNSense and HAProxy.  ;D
Title: Re: Live log view for HAProxy plugin?
Post by: mimugmail on January 17, 2020, 04:45:04 PM
The logging UI comes from core, not the plugin, but there will be a big change in 20.1, just wait until it's out and then see what's possible.