mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
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:
@@ -75,7 +75,7 @@ my %sections = (
|
|||||||
'suricata' => '(suricata: )',
|
'suricata' => '(suricata: )',
|
||||||
'squid' => '(squid\[.*\]: |squid: )',
|
'squid' => '(squid\[.*\]: |squid: )',
|
||||||
'ssh' => '(sshd(?:\(.*\))?\[.*\]: )',
|
'ssh' => '(sshd(?:\(.*\))?\[.*\]: )',
|
||||||
'unbound' => '(unbound: \[.*:.*\])(.*:.*$)',
|
'unbound' => '(unbound: \[.*?\])(.*:.*$)',
|
||||||
'urlfilter bl' => '(installpackage\[urlfilter\]: )',
|
'urlfilter bl' => '(installpackage\[urlfilter\]: )',
|
||||||
'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:)'
|
'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:)'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user