-   Linux - Server (
-   -   [syslog-ng] logging remote server by IP address (

noir911 02-10-2008 11:17 PM

[syslog-ng] logging remote server by IP address
I am logging some remote server with syslog-ng. However, the log files are coming as /var/log/ip-address and not /var/log/host-name. Is there's anything I can do to change this? I have the following in my syslogng.conf file -

long_hostnames (off);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);

Thanks for any help.

acid_kewpie 02-11-2008 03:51 PM

you want to use the resolved dns name instead of the ip address? reckon that that "use_dns(no)" option might have something to do with that? ;-) note of course that you do need dns working, syslog doesn't have any implicit notion of hostnames within the protocol.

noir911 02-11-2008 07:15 PM

Thanks! That helped.

Another question: if it fails to resolve the hostname of a client, will it log by ip address or will it not log that client at all?

Thanka, again.

acid_kewpie 02-12-2008 04:25 AM

oh it'll always log one way or another...

All times are GMT -5. The time now is 10:28 AM.