summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_filter.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-13 02:04:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-13 02:04:16 +0000
commit79a586b167a0a490d2dfa2e3c23be84fd31e9897 (patch)
treeee355a55f3bd8065d30acbed5f0891c81c70447c /usr/local/www/diag_logs_filter.php
parentac70ae79f47b7cab485a2e9edb2d5fbac2494f42 (diff)
downloadpfsense-79a586b167a0a490d2dfa2e3c23be84fd31e9897.zip
pfsense-79a586b167a0a490d2dfa2e3c23be84fd31e9897.tar.gz
If we could not parse a filter log rule, log the rule and ask them to report the rule to mailing list or forum
Diffstat (limited to 'usr/local/www/diag_logs_filter.php')
-rwxr-xr-xusr/local/www/diag_logs_filter.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index e5c0598..bdbf83f 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -128,15 +128,21 @@ function conv_clog($logfile, $tail = 50) {
$tmp = split("/", $log_split[2]);
$flent['rulenum'] = $tmp[0];
+ $shouldadd = true;
+
if($flent['src'] == "")
- continue;
+ $shouldadd = false;
if($flent['dst'] == "")
- continue;
+ $shouldadd = true;
if($flent['time'] == "")
- continue;
+ $shouldadd = true;
- $counter++;
- $filterlog[] = $flent;
+ if($shouldadd == true) {
+ $counter++;
+ $filterlog[] = $flent;
+ } else {
+ log_error("There was a error parsing rule: $logent . Please report to mailing list or forum.");
+ }
}
OpenPOWER on IntegriCloud