[syslog-ng] Problem using Python Parser

Scheidler, Balázs balazs.scheidler at balabit.com
Sat Dec 30 05:52:17 UTC 2017


The _syslogng module is automatically created from the top level python
block in syslog-ng and behaves similarly to the python __main__ module.

Do you explicitly import that module using the imports() option?

Can you please post your config?

On Dec 30, 2017 00:27, "Ronald Fenner" <rfenner at gamecircus.com> wrote:

> When I try to load my config with a python parser in it I'm getting this
> error message:
> Starting /opt/syslog-ng/sbin/syslog-ng: [2017-12-29T23:00:05.813945] Error
> loading Python module; module='_syslogng', exception='exceptions.ImportError:
> No module named _syslogng'
> [2017-12-29T23:00:05.814066] Error looking Python parser class;
> parser='p_php_fpm', class='PhpFpmParser', exception='None'
> [2017-12-29T23:00:05.814116] Error initializing message pipeline; plugin
> name='python', location='/opt/syslog-ng/etc/syslog-ng.conf:52:20'
>
> I build syslog-ng from source with the python options. Here is the -V
> output
> syslog-ng 3 (3.11.1)
> Installer-Version: 3.11.1
> Revision:
> Compile-Date: Dec 29 2017 21:24:13
> Module-Directory: /opt/syslog-ng/lib/syslog-ng
> Module-Path: /opt/syslog-ng/lib/syslog-ng
> Available-Modules: snmptrapd-parser,affile,cef,
> afstomp,basicfuncs,pseudofile,tfgetent,afsocket,mod-python,
> json-plugin,afuser,kvformat,stardate,graphite,dbparser,
> csvparser,date,afmongodb,system-source,disk-buffer,
> confgen,linux-kmsg-format,afamqp,map-value-pairs,http,
> afprog,add-contextual-data,sdjournal,cryptofuncs,syslogformat
> Enable-Debug: off
> Enable-GProf: off
> Enable-Memtrace: off
> Enable-IPv6: on
> Enable-Spoof-Source: off
> Enable-TCP-Wrapper: off
> Enable-Linux-Caps: off
> Enable-Systemd: off
>
> Not sure how to fix this as from what I can tell this module is supposed
> to be compiled in and automatically imported.
>
>
> Ronald Fenner
> Programmer
> Game Circus LLC.
>
> rfenner at gamecircus.com
>
>
> ____________________________________________________________
> __________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?
> product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20171230/24f52ab7/attachment-0001.html>


More information about the syslog-ng mailing list