Sorry - 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. Thanks, Dave --- "Ohrberg, Mick" <Mick.Ohrberg@umb.com> wrote:
David,
What is the question?
: -----Original Message----- : From: David [mailto:david_christman@yahoo.com] : Sent: Wednesday, August 02, 2000 4:23 PM : To: syslog-ng@lists.balabit.hu : Subject: [syslog-ng] (no subject) : : : Folks - : : : 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) ) ;}; : : : I am running solaris 2.7 on SPARC. : : : TIA : : : ===== : : Dave Christman : Email: david_christman@yahoo.com : : : : __________________________________________________ : Do You Yahoo!? : Kick off your party with Yahoo! Invites. : http://invites.yahoo.com/ : : _______________________________________________ : syslog-ng maillist - syslog-ng@lists.balabit.hu : http://lists.balabit.hu/mailman/listinfo/syslog-ng :
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu http://lists.balabit.hu/mailman/listinfo/syslog-ng
===== Dave Christman Email: david_christman@yahoo.com __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/
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
Oh,
Other format as follows. Please try it.
options { create_dirs(yes); }; destination all { file(/"var/adm/$HOST/messages"); };
Of course, the following is right. Sorry. :-) options { create_dirs(yes); }; destination all { file("/var/adm/$HOST/messages"); }; -- Tomohiro Yamauchi handy@nid.co.jp
participants (2)
-
David
-
Tomohiro Yamauchi