[syslog-ng] syslog-ng client machine IP address in message header

Jain, Vaibhav (GE Healthcare) Vaibhav.Jain at ge.com
Tue Sep 29 11:41:05 CEST 2009


Hi,
 
I am using syslog-ng open source (syslog-ng-3.0.3-1.rhel5.amd64) for log
collection. I want to pass the syslog-ng machine ip address in the
message header. in the current configuration I am getting following
header in the log message --> 
 
Sep 29 00:24:20 INBLRECIS2871 ''
 
In the above message "INBLRECIS2871" is the syslog-ng machine name but I
want the IP address in place of machine name. let me know how to achieve
this ?
 
 
 
Current configurastion -->
1) syslog-ng client config :->
 
options {
        mark_freq(30);
        log_msg_size(65530);
}
 
destination d_messages {
                syslog("3.2.20.26" transport("tcp") port(601)
template("$HOST $MSGHDR$MSG ::::$FILE_NAME"));
}
 
 
2) syslog-ng server config->
 
options {
        time_reap(30);
        mark_freq(10);
        log_msg_size(65530);
}
 
 
Regards,
Vaibhav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090929/5da28f57/attachment-0001.htm 


More information about the syslog-ng mailing list