From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Murphy To: development@lists.ipfire.org Subject: [PATCH] log.dat: Fix an error with 'unbound' logging too much data. Date: Fri, 17 Feb 2023 11:53:37 -0600 Message-ID: <20230217175337.1276318-1-jon.murphy@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8262784144770601047==" List-Id: --===============8262784144770601047== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit - Make regex "non-greedy" - grab data up to first occurance of "]" and not last occurance of "]" Signed-off-by: Jon Murphy --- 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 5fb1fcd5d..17dacbbf5 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -74,7 +74,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]:)' ); -- 2.30.2 --===============8262784144770601047==--