mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 10:57:52 +02:00
Fixed Bug in generic Filter function which applies to all logstreams.
This caused REGEX filters to fail, if supported by the LogStream driver.
This commit is contained in:
parent
593e2e4548
commit
cbf3858c16
@ -474,8 +474,12 @@ abstract class LogStream {
|
||||
// Include Filter
|
||||
if ( $myfilter[FILTER_MODE] & FILTER_MODE_INCLUDE )
|
||||
{
|
||||
if ( stripos($propertyvalue, $myfilter[FILTER_VALUE]) === false )
|
||||
$bEval = false;
|
||||
// Unless REGEX Filter, this has to be done by the Logstream driver
|
||||
if ( !($myfilter[FILTER_MODE] & FILTER_MODE_SEARCHREGEX) )
|
||||
{
|
||||
if ( stripos($propertyvalue, $myfilter[FILTER_VALUE]) === false )
|
||||
$bEval = false;
|
||||
}
|
||||
}
|
||||
// Exclude Filter
|
||||
else if ( $myfilter[FILTER_MODE] & FILTER_MODE_EXCLUDE )
|
||||
|
Loading…
x
Reference in New Issue
Block a user