RE: [syslog-ng]logging with $HOST and no $HOST
You can always use the DEFAULT filter as your last log line. log { source(src); filter(DEFAULT); destination(junkfile); }; That will get all the logs any of your filters would miss. Regards, Drew -----Original Message----- From: JR Mayberry [mailto:mayberry0404@yahoo.com] Sent: Friday, October 11, 2002 1:56 PM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]logging with $HOST and no $HOST When I do an lsof on my syslog-ng server I will see entries like (i'm setup with : file(/log/$HOST/$MONTH-$DAY-$YEAR); ) "/log -- 13" (13 because its 1pm now) "/log -- 10-11-2002/13" So, I'm obviously losing logs, I need to know how I can fix this and get these logs (even if it's to a "dump all poorly malformed log packets to a single file" solution) syslog-ng 1.5.15 thanks. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
On Mon, Oct 14, 2002 at 08:48:51PM -0400, Hamilton, Andrew wrote:
You can always use the DEFAULT filter as your last log line.
log { source(src); filter(DEFAULT); destination(junkfile); };
That will get all the logs any of your filters would miss.
this is syslog-ng 1.4.x, in 1.5.x you could use the new flags feature: log { source(src); destination(junkfile); flags(fallback, final); }; -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (2)
-
Balazs Scheidler
-
Hamilton, Andrew