Skip to content

Conversation

@mrkkrn
Copy link

@mrkkrn mrkkrn commented Jul 20, 2023

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 &quot;ob_gzhandler&quot; 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"

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant