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

noreply at adiscon.com noreply at adiscon.com
Fri Apr 18 10:56:27 CEST 2014


User: caiconkhicon 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24562#p24562

Message: 
----------
Hi all, I'm new with rsyslog

Normally a log record has the format:
Apr 18 15:54:15 [[i:3e1siti8]myhostname[/i:3e1siti8]] sshd[22594]: Failed
password for root from 10.30.12.109 port 42849 ssh2

but now I want to log in form:
Apr 18 15:54:15 [[i:3e1siti8]myIP[/i:3e1siti8]] sshd[22594]: Failed
password for root from 10.30.12.109 port 42849 ssh2

This mean it use IP instead of hostname. So can anyone show me how to do
this ?

Thank you very much.


More information about the rsyslog-notify mailing list