[rsyslog] if %FROMHOST% == '???' then %FROMHOST% == %IP%

Michael Maymann michael at maymann.org
Wed Feb 1 12:48:57 CET 2012


Hi,

I want to log information about hosts that are not logging with correct
HOSTNAME.
In my current setup, I get a dir "???" where these host(s) are logging to...

I would like to change this to the hosts IP instead, something like:
if %FROMHOST% == '???' then %FROMHOST% == %IP

But don't know the correct format...
Anyone who can help ?


Thanks in advance :-) !
~maymann



More information about the rsyslog mailing list