mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
Fixed bug in apache2 msgparser
This commit is contained in:
parent
3da89eac8f
commit
4c03d1c53a
@ -233,18 +233,18 @@ class LogStreamDisk extends LogStream {
|
||||
else
|
||||
$ret = $this->ReadNextBackwards($uID, $arrProperitesOut);
|
||||
|
||||
// Only PARSE on success!
|
||||
if ( $ret == SUCCESS && $bParseMessage)
|
||||
{
|
||||
// Line Parser Hook here
|
||||
$this->_logStreamConfigObj->_lineParser->ParseLine($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut);
|
||||
|
||||
// Run optional Message Parsers now
|
||||
$this->_logStreamConfigObj->ProcessMsgParsers($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut);
|
||||
// Only PARSE on success!
|
||||
if ( $ret == SUCCESS && $bParseMessage)
|
||||
{
|
||||
// Line Parser Hook here
|
||||
$this->_logStreamConfigObj->_lineParser->ParseLine($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut);
|
||||
|
||||
// Run optional Message Parsers now
|
||||
$this->_logStreamConfigObj->ProcessMsgParsers($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut);
|
||||
|
||||
// Set uID to the PropertiesOut!
|
||||
$arrProperitesOut[SYSLOG_UID] = $uID;
|
||||
}
|
||||
// Set uID to the PropertiesOut!
|
||||
$arrProperitesOut[SYSLOG_UID] = $uID;
|
||||
}
|
||||
|
||||
// Loop until the filter applies, or another error occurs.
|
||||
} while ( $this->ApplyFilters($ret, $arrProperitesOut) != SUCCESS && $ret == SUCCESS );
|
||||
@ -855,7 +855,7 @@ class LogStreamDisk extends LogStream {
|
||||
|
||||
if ( !$bEval )
|
||||
{
|
||||
// unmatching filter, rest property array
|
||||
// unmatching filter, reset property array
|
||||
foreach ( $this->_arrProperties as $property )
|
||||
$arrProperitesOut[$property] = '';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user