[syslog-ng] (no subject)

Tomohiro Yamauchi handy@nid.co.jp
Thu, 03 Aug 2000 11:05:31 +0900 (JST)


Hi,

From: David <david_christman@yahoo.com>
Subject: RE: [syslog-ng] (no subject)
Date: Wed, 2 Aug 2000 15:15:28 -0700 (PDT)
Message-ID: <20000802221528.10752.qmail@web110.yahoomail.com>

> 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	handy@nid.co.jp