Closed rabelux closed 7 months ago
Those weird symbols are what normally colorizes the output. Not sure why they are showing up in the web interface. I will have to try it when I get a chance. Not sure there is anything the plugin can do about it though.
Agree, it's probably OMV that should ignore it. When checking logs in the web interface it also shows these symbols:
viewing the logfile in terminal looks good though an contains the mentioned colouring:
According to https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-fail2ban/blob/master/usr/share/openmediavault/engined/inc/90fail2ban.inc#L25 the content comes directly from the log file. If those characters are in the file, why should OMV filter them?
If you like to get it filtered you could try to use journalctl
like this here. Maybe SYSTEMD_COLORS=0
will do the job. If it works you're welcome to open a PR that will fix it.
@ryecoaaron If you call salt-call
somewhere in the code you can use --no-color
to suppress the color output. Maybe https://github.com/openmediavault/openmediavault/commit/71bd9882e6c147b80afcba0c291ec13aefd2dce5 will help you, too.
@votdev None of the plugins use salt-call. So, we should be ok there. I remember the colors causing issues. I just need to look at how fail2ban logs now.
thanks guys for looking into this
I don't see any way to get fail2ban to not log in color to its log file though.
I don't see any way to get fail2ban to not log in color to its log file though.
Where or what is creating this content? It looks like output from Salt. Is it `omv-salt?
@votdev /usr/bin/fail2ban-server logs to the /var/log/fail2ban.log file. There is no argument to remove the colorization.
Closing due to age.
I just updated via webgui and the output looks kinda weird. see attached log. I tried to find where in this repo these strings are configured but didn't find a location. As this is the only plugin where i noticed this issue I guess it has to be this repo where it has to be fixed. @ryecoaaron do you know how/where this is generated?