From 7671193ba9c24ae074666cd8a4a46347d603801a Mon Sep 17 00:00:00 2001 From: Luiz Souza Date: Thu, 21 Mar 2019 11:44:21 -0300 Subject: [PATCH] Use the same regex used in parse_firewall_log_line(). No functional changes. --- src/etc/inc/filter_log.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/filter_log.inc b/src/etc/inc/filter_log.inc index f294b006a9..5262192364 100644 --- a/src/etc/inc/filter_log.inc +++ b/src/etc/inc/filter_log.inc @@ -83,7 +83,7 @@ function conv_log_filter($logfile, $nentries, $tail = 50, $filtertext = "", $fil # Construct RegEx for specific log file type. if ($logfile_type == 'firewall') { - $pattern = "filterlog"; + $pattern = "filterlog\[[0-9]+\]:"; } else if ($logfile_type == 'system') { $pattern = "^" . $date_pattern . "\ +" . $host_pattern . "\ +" . $process_pid_pattern . "\ +" . $log_message_pattern . "$";