[syslog-ng]How to get IP addresses ONLY in the syslog file

Markus Foerster syslog-ng@lists.balabit.hu
Fri, 28 May 2004 14:41:39 +0200


Hi,

I want to get IP addresses only (not hostnames) in the files written 
by syslog-ng. I set the relevant options as:

options {
        long_hostnames (off);
        use_dns (no);
        use_fqdn (no);
        keep_hostname (no);
        use_time_recvd (yes);
};

It works for remote connections, however localhost still appears with 
its device name. Can I get it to log as "127.0.0.1" instead? Ideally 
I don't want to have the host name in the config file (I know I could 
define a different template for the local host name or something).

Thanks
Markus