Update logstreamlineparsersyslogng.class.php #96
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix for parser when syslog-ng is selected.
syslog-ng: syslog-ng 4 (4.2.0)
loganalyzer: commit: 18c40e1
loganalyzer config.php
$CFG['DefaultSourceID'] = 'Source1'; $CFG['Sources']['Source1']['ID'] = 'Source1'; $CFG['Sources']['Source1']['Name'] = 'whatever'; $CFG['Sources']['Source1']['ViewID'] = 'SYSLOG'; $CFG['Sources']['Source1']['SourceType'] = SOURCE_DISK; $CFG['Sources']['Source1']['LogLineType'] = 'syslogng'; $CFG['Sources']['Source1']['DiskFile'] = '/var/log/syslogng.log';
Symptoms
datetime [error] xyz: *29 FastCGI sent in stderr: "PHP message: PHP Warning: ob_start(): function "ob_gzhandler" not found or invalid function name in /usr/local/www/loganalyzer/include/functions_common.php on line 649; PHP message: PHP Notice: ob_start(): Failed to create buffer in /usr/local/www/loganalyzer/include/functions_common.php on line 649; PHP message: PHP Fatal error: Uncaught Error: Class "LogStreamLineParsersyslogng" not found in /usr/local/www/loganalyzer/classes/logstreamconfigdisk.class.php:77 Stack trace: #0 /usr/local/www/loganalyzer/classes/logstreamconfigdisk.class.php(54): LogStreamConfigDisk->CreateLineParser() #1 /usr/local/www/loganalyzer/index.php(234): LogStreamConfigDisk->LogStreamFactory() #2 {main} thrown in /usr/local/www/loganalyzer/classes/logstreamconfigdisk.class.php on line 77" while reading response header from upstream, client: <ipaddress>, server: log.krabica.local, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "<ipaddress>", referrer: "http://<ipaddress>/install.php?step=8"
`