[syslog-ng] Use specific python3 binary file

Armando Martires amartires at smartechnologies.pt
Wed Oct 23 16:59:56 UTC 2019


Thanks for your help,

I will try to use the program() destination instead.


Cheers,
Armando Mártires


On 10/23/2019 4:51 PM, László Várady (lvarady) wrote:
> Hi,
>
> > How can I configure syslog-ng to use this alternative binary file?
>
> If you are using the Python destination (not the program() destination 
> executing the python3 binary), then syslog-ng does not use the Python 
> binary at all.
>
> The python() destination starts a separate thread inside syslog-ng 
> instead, and uses the libpython library to interpret Python code.
>
> In case you have syslog-ng compiled with Python 3 support, you can 
> specify which libpython to use with the LD_LIBRARY_PATH environment 
> variable or with standard ldconfig configurations.
> For example: /apps/lib/libpython3.so --> LD_LIBRARY_PATH=/apps/lib
>
> A syslog-ng instance compiled with Python 2 support currently can't be 
> configured to use Python 3, you have to recompile it from source in 
> this case (./configure --enable-python --with-python=3, for example).
> The PKG_CONFIG_PATH envvar can be used to help the configure script 
> find the appropriate path to libpython.
>
>
> --
> László Várady
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20191023/9d655917/attachment.html>


More information about the syslog-ng mailing list