<div dir="auto">If those options match in the hostname field, syslog-ng will assume it didn't get a hostname, and shifts that value to the start of the message field, so they will be parsed into PROGRAM.<div dir="auto"><br></div><div dir="auto">alternatively you can use the no-parse flag, fix the value and apply a syslog-parser() later.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 6, 2019, 03:21 Delon Lee Di Lun <<a href="mailto:lee.delon2005@gmail.com">lee.delon2005@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>Anybody used the syslog-ng options bad_hostname & check_hostname? <br><br></div><div>How does that works? </div><div><br></div><div>I have syslog-ng listening on UDP, and found that there are some gibberish logs in the folder. Was thinking if using the above two options would help reduce the gibberish. </div><div><br></div><div>Yours Sincerely, </div><div>Delon</div></div>
______________________________________________________________________________<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>