]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
log.dat: Fix an error with 'monit' logging too much data.
authorMatthias Fischer <matthias.fischer@ipfire.org>
Fri, 21 Jan 2022 17:07:56 +0000 (18:07 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 25 Jan 2022 17:33:00 +0000 (17:33 +0000)
commit8f58e6612b63a0b3bcfabd36dc2e0dbf958e6d98
tree3ad25de4888ca32536a495d7684907d05dbef9cf
parente0a904f56a6e7b44580aa4df530c3922b57b19dc
log.dat: Fix an error with 'monit' logging too much data.

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-perl-regex.html

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
html/cgi-bin/logs.cgi/log.dat