Making the regex "non-greedy" fixes an error Jon found.
'monit' logged a whole line from '/var/log/messages' where it should only log the first part.
Reference: https://www.ultraedit.com/support/tutorials-power-tips/ultraedit/non-greedy-...
Signed-off-by: Matthias Fischer matthias.fischer@ipfire.org --- html/cgi-bin/logs.cgi/log.dat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index 0d6c6722a..3364b7bea 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -62,7 +62,7 @@ my %sections = ( 'ipfire' => '(ipfire: )', 'ipsec' => '(ipsec_[\w_]+: |pluto[.*]: |charon: |vpnwatch: )', 'kernel' => '(kernel: (?!DROP_))', - 'monit' => '(monit[.*]: )', + 'monit' => '(monit[.*?]: )', 'ntp' => '(ntpd(?:ate)?[.*]: )', 'oinkmaster' => '(oinkmaster[.*]: )', 'openvpn' => '(openvpnserver[.*]: |.*n2n[.*]: )',