[syslog-ng]$HOST gives IP address instead of hostname

William Yodlowsky wyodlows@andromeda.rutgers.edu
Wed, 14 Aug 2002 17:08:11 -0400


William Yodlowsky <wyodlows@andromeda.rutgers.edu> wrote:

> Hello,
>
> I have syslog-ng configured with create_dirs(yes) and $HOST in several 
> places, and I find that occasionally during a restart (HUP or 
> stop/start) it will create some directories with the IP address of the
> machine instead of the resolved hostname.  I have these options in use:
>
> options { long_hostnames(off); keep_hostname(yes); use_dns(no); };
>
> All systems that are sending logs to this machine have an entry in the
> /etc/hosts file locally, yet some end up with a logfile with this in it:
>
> Aug 12 11:51:11 a.b.c.d syslog-ng version 1.5.13 going down
> Aug 12 11:51:11 a.b.c.d syslog-ng version 1.5.13 starting
> Aug 12 17:29:00 a.b.c.d syslog-ng version 1.5.13 going down
> Aug 12 17:29:03 a.b.c.d syslog-ng version 1.5.13 starting
>
> a.b.c.d is in private address space.
>
> I should note that this happened with 1.5.10 as well.
>
> I haven't yet moved to 1.5.19 yet, but likely will soon.  I'm running 
> Solaris 8 sparc on both the clients and server.
>
> Thanks in advance.

Oops - sorry about the subject line.