<div dir="auto">The _syslogng module is automatically created from the top level python block in syslog-ng and behaves similarly to the python __main__ module.<div dir="auto"><br></div><div dir="auto">Do you explicitly import that module using the imports() option?</div><div dir="auto"><br></div><div dir="auto">Can you please post your config?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 30, 2017 00:27, "Ronald Fenner" <<a href="mailto:rfenner@gamecircus.com">rfenner@gamecircus.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">When I try to load my config with a python parser in it I'm getting this error message:<div><div>Starting /opt/syslog-ng/sbin/syslog-ng: [2017-12-29T23:00:05.813945] Error loading Python module; module='_syslogng', exception='exceptions.<wbr>ImportError: No module named _syslogng'</div><div>[2017-12-29T23:00:05.814066] Error looking Python parser class; parser='p_php_fpm', class='PhpFpmParser', exception='None'</div><div>[2017-12-29T23:00:05.814116] Error initializing message pipeline; plugin name='python', location='/opt/syslog-ng/etc/<wbr>syslog-ng.conf:52:20'</div><div><br></div><div>I build syslog-ng from source with the python options. Here is the -V output</div><div><div>syslog-ng 3 (3.11.1)</div><div>Installer-Version: 3.11.1</div><div>Revision:</div><div>Compile-Date: Dec 29 2017 21:24:13</div><div>Module-Directory: /opt/syslog-ng/lib/syslog-ng</div><div>Module-Path: /opt/syslog-ng/lib/syslog-ng</div><div>Available-Modules: snmptrapd-parser,affile,cef,<wbr>afstomp,basicfuncs,pseudofile,<wbr>tfgetent,afsocket,mod-python,<wbr>json-plugin,afuser,kvformat,<wbr>stardate,graphite,dbparser,<wbr>csvparser,date,afmongodb,<wbr>system-source,disk-buffer,<wbr>confgen,linux-kmsg-format,<wbr>afamqp,map-value-pairs,http,<wbr>afprog,add-contextual-data,<wbr>sdjournal,cryptofuncs,<wbr>syslogformat</div><div>Enable-Debug: off</div><div>Enable-GProf: off</div><div>Enable-Memtrace: off</div><div>Enable-IPv6: on</div><div>Enable-Spoof-Source: off</div><div>Enable-TCP-Wrapper: off</div><div>Enable-Linux-Caps: off</div><div>Enable-Systemd: off</div></div><div><br></div><div>Not sure how to fix this as from what I can tell this module is supposed to be compiled in and automatically imported.</div><div><br></div><div><br></div><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div>Ronald Fenner</div><div>Programmer</div><div>Game Circus LLC.</div></div><div><br></div><div><a href="mailto:rfenner@gamecircus.com" target="_blank">rfenner@gamecircus.com</a></div></div></div>
</div>
<br></div></div><br>______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a><br>
<br>
<br></blockquote></div></div>