[rsyslog-notify] Forum Thread: Re: Use IP instead of hostname in log record - (Mode 'reply')

noreply at adiscon.com noreply at adiscon.com
Fri Apr 18 23:31:49 CEST 2014


User: dlang 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24564#p24564

Message: 
----------
the first question is which IP address do you want to use? your box has
several (at least two IPv4 and probably 3-5 IPv6 addresses if you only have
a single network connection, more if you have multiple network connections)

you can change the template that you use to write the log message to say
anything that you want, including to have a hard coded string (which could
be an IP address) instead of the hostname.

you can read about templates at <!-- w --><a class="postlink"
href="http://www.rsyslog.com/doc/master/configuration/templates.html">www.rsyslog.com/doc/master/configuration/templates.html</a><!--
w -->


More information about the rsyslog-notify mailing list