[syslog-ng] if no host; do use_dns

Balazs Scheidler bazsi77 at gmail.com
Wed May 9 20:31:39 CEST 2012


----- Original message -----
> Hi list,
> 
> With keep_hostname(yes), when the syslog-ng box receives a message which
> does not have a host field, you end up with the last hop IP as the
> hostname. Is there already a way to tell sysng to use_dns() when this
> situation is encountered?

it is exactly the use-dns option that controls this.

> 
> I'd like to continue using keep_hostname(yes) for all log messages which
> do have a hostname included, but in the instance that hostname is not
> included, have syslog-ng do a reverse dns lookup in order to resolve
> hostname.
> 

this is the behaviour for use-dns(yes)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120509/c0c93146/attachment.htm 


More information about the syslog-ng mailing list