<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Thanks for your help,<br>
<br>
I will try to use the program() destination instead.</p>
<p><br>
</p>
<p>Cheers,<br>
Armando Mártires<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 10/23/2019 4:51 PM, László Várady
(lvarady) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DM6PR19MB314896816347E6C7C6BF0253F76B0@DM6PR19MB3148.namprd19.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div>Hi,</div>
<div class="PlainText"><br>
> How can I configure syslog-ng to use this alternative
binary file?</div>
<div class="BodyFragment"><font size="2"><span
style="font-size:11pt">
<div class="PlainText"><br>
</div>
<div class="PlainText">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.</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">The python() destination starts a
separate thread inside syslog-ng instead, and uses the
libpython library to interpret Python code.</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">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.</div>
<div class="PlainText">For example: /apps/lib/libpython3.so
--> LD_LIBRARY_PATH=/apps/lib<br>
</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">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).</div>
<div class="PlainText">The PKG_CONFIG_PATH envvar can be
used to help the configure script find the appropriate
path to libpython.<br>
</div>
<div class="PlainText"><br>
</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">--</div>
<div class="PlainText">László Várady<br>
</div>
</span></font></div>
</blockquote>
</body>
</html>