[syslog-ng] (no subject)

Tomohiro Yamauchi [email protected]
Thu, 03 Aug 2000 11:05:31 +0900 (JST)


Hi,

From: David <[email protected]>
Subject: RE: [syslog-ng] (no subject)
Date: Wed, 2 Aug 2000 15:15:28 -0700 (PDT)
Message-ID: <[email protected]>

> It seems that messages from remote hosts are ending up
> in /var/adm/messages instead of
> /var/adm/<remote-host>/messages.
> How to tie the source hostname to the destination
> filename is the question, I guess.
> 
> > : Newbie question....
> > : I am trying to log all messages from a large
> > number (
> > : >50 ) of remote hosts to a central log host.  I am
> > : using the syntax:
> > : 
> > : destination all { file(/"var/adm/$HOST/messages" create_dirs(yes) ) ;};
                             ^^ "/
Is this OK?


Other format as follows. Please try it.

options { create_dirs(yes); };
destination all { file(/"var/adm/$HOST/messages"); };

--
Tomohiro Yamauchi	[email protected]