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

Scheidler, Balázs balazs.scheidler at balabit.com
Sun Feb 28 01:20:39 CET 2016


Hmm. Maybe an exception  happens during import? Clearly the import itself
fails.
On Feb 26, 2016 20:24, "Wil Koch" <wfkoch at gmail.com> wrote:

> 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
>
>
> ______________________________________________________________________________
> 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/20160228/824c094c/attachment.htm 


More information about the syslog-ng mailing list