[syslog-ng] Error loading Python module for log destination

Wil Koch wfkoch at gmail.com
Fri Feb 26 20:24:17 CET 2016


Hi All,
I am following the tutorial below in an attempt to get Python support for
destinations,

https://syslog-ng.gitbooks.io/getting-started/content/chapters/chapter_5/section_1.html

I have built syslog-ng-3.7.2 from source and have it up and running on
Ubuntu 14.04. I initially had a simple log for iptables logging to a file
to confirm functionality. After I  changed my conf to include a Python
destination, I am receiving the following error when starting syslog-ng at
the command line,
 [2016-02-26T12:15:48.874748] Error loading Python module;
module='betterpythonexample', exception='exceptions.ImportError: No module
named betterpythonexample'
[2016-02-26T12:15:48.874775] Error looking Python driver class;
driver='python_to_file#0', class='betterpythonexample.TextDestination',
exception='None'
[2016-02-26T12:15:48.874782] Error initializing message pipeline;

I have PYTHONPATH set to the directory where the script is, and I have
confirmed the variable is working by importing the module in the python
interpreter. Any suggestions for debugging would be much appreciated, I'm
out of ideas.

Thank you,
Wil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160226/933d59bf/attachment-0001.htm 


More information about the syslog-ng mailing list