<div dir="auto">Localip should be the answer.  Can you check via strace whether syslog-ng binds to that address?</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 28, 2019, 21:20 Robin P. Blanchard <<a href="mailto:robin.blanchard@gmail.com">robin.blanchard@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A static route to your desired target via your desired interface ?<br>
<br>
On Thu, Mar 28, 2019 at 1:59 PM Scot <<a href="mailto:scotrn@gmail.com" target="_blank" rel="noreferrer">scotrn@gmail.com</a>> wrote:<br>
><br>
> Is there a way to bind to a src IP when sending forwarding an event from syslog-ng ?<br>
><br>
> We have an alias on the system and want to use that as the sending IP address for a forward.  Tried the localip option which seems to pass conf check but ignored for destinations.<br>
><br>
> Looked in the network and syslog driver documentation and didn't see anything obvious.<br>
><br>
> syslog-ng 3 (3.14.1)<br>
> Config version: 3.14<br>
> Installer-Version: 3.14.1<br>
> Revision:<br>
> Compile-Date: Mar 14 2018 09:48:15<br>
> Module-Directory: //usr/lib64/syslog-ng<br>
> Module-Path: //usr/lib64/syslog-ng<br>
> Available-Modules: add-contextual-data,affile,afprog,afsocket,afstomp,afuser,basicfuncs,cef,confgen,cryptofuncs,csvparser,date,dbparser,disk-buffer,graphite,json-plugin,kvformat,linux-kmsg-format,pseudofile,sdjournal,syslogformat,system-source,afsmtp,geoip-plugin,mod-java,map-value-pairs,snmptrapd-parser,stardate,tfgetent,appmodel,tags-parser,xml,geoip2-plugin,afamqp<br>
> Enable-Debug: off<br>
> Enable-GProf: off<br>
> Enable-Memtrace: off<br>
> Enable-IPv6: on<br>
> Enable-Spoof-Source: on<br>
> Enable-TCP-Wrapper: on<br>
> Enable-Linux-Caps: on<br>
> Enable-Systemd: on<br>
> ______________________________________________________________________________<br>
> Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
> Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
> FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
><br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>