<div dir="auto">Try HOST_FROM instead of HOST<div dir="auto"><br></div><div dir="auto">Possibly also try no-parseĀ </div><div dir="auto"><br></div><div dir="auto">Jim</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018, 5:55 AM <<a href="mailto:freebsd@tango.lu">freebsd@tango.lu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have a syslog server setup which works quite well for most of the <br>
hosts:<br>
<br>
destination d_net_debug {<br>
file("/var/log/$HOST/debug"); };<br>
<br>
destination d_net_error {<br>
file("/var/log/$HOST/error"); };<br>
<br>
This way I dont have to define every host which logs there but they will <br>
be autocreated.<br>
<br>
I have a quite misbehaving Asus router device however which keep sending <br>
strings like:<br>
<br>
FTP<br>
WAN(11)<br>
WAN(8)<br>
WAN(3)<br>
<br>
as host therefore syslog-ng interpret these messages like it would be <br>
coming from different $HOSTs and keep creating directories for them.<br>
<br>
2018-07-22T20:45:59+02:00 WAN Connection: Wan link down.<br>
2018-07-24T16:12:20+02:00 WAN Connection: Wan link down.<br>
2018-07-22T20:45:59+02:00 WAN Connection: Wan link down.<br>
2018-07-24T16:12:20+02:00 WAN Connection: Wan link down.<br>
<br>
<br>
How do I force all the logs into one logfile for this one specific host?<br>
If possible I don't want to change my current rules just extend them.<br>
<br>
Thank you.<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>