mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +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
|
// Include Filter
|
||||||
if ( $myfilter[FILTER_MODE] & FILTER_MODE_INCLUDE )
|
if ( $myfilter[FILTER_MODE] & FILTER_MODE_INCLUDE )
|
||||||
{
|
{
|
||||||
if ( stripos($propertyvalue, $myfilter[FILTER_VALUE]) === false )
|
// Unless REGEX Filter, this has to be done by the Logstream driver
|
||||||
$bEval = false;
|
if ( !($myfilter[FILTER_MODE] & FILTER_MODE_SEARCHREGEX) )
|
||||||
|
{
|
||||||
|
if ( stripos($propertyvalue, $myfilter[FILTER_VALUE]) === false )
|
||||||
|
$bEval = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Exclude Filter
|
// Exclude Filter
|
||||||
else if ( $myfilter[FILTER_MODE] & FILTER_MODE_EXCLUDE )
|
else if ( $myfilter[FILTER_MODE] & FILTER_MODE_EXCLUDE )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user