Live log view for HAProxy plugin?

Started by laralar, January 12, 2020, 05:46:17 AM

Previous topic - Next topic
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

HAProxy logs circular in OPN so command has to be:


clog -f <filename>

Thanks.. that did the trick..

Still I would love the Live view that the firewall has where I could put some filter  ;D

For filtering add '| grep term', without the quotes after the given command for text filtering.

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

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.