log.dat: Fix an error with 'unbound' logging too much data.

- Make regex "non-greedy"
- grab data up to first occurance of "]" and not last occurance of "]"

Signed-off-by: Jon Murphy <jon.murphy@ipfire.org>
This commit is contained in:
Jon Murphy
2023-02-17 11:53:37 -06:00
committed by Peter Müller
parent 3ad00458a5
commit 4bb389232e

View File

@@ -75,7 +75,7 @@ my %sections = (
'suricata' => '(suricata: )',
'squid' => '(squid\[.*\]: |squid: )',
'ssh' => '(sshd(?:\(.*\))?\[.*\]: )',
'unbound' => '(unbound: \[.*:.*\])(.*:.*$)',
'unbound' => '(unbound: \[.*?\])(.*:.*$)',
'urlfilter bl' => '(installpackage\[urlfilter\]: )',
'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:)'
);