Hi guys, Anyone know how syslog-ng handles the log statements when you have two log statements that would apply? I think this will make more sense after looking at the example. source s_src { unix-stream ("/dev/log"); internal(); udp(ip(0.0.0.0) port(514));}; destination d_messages { file("/var/log/messages"); }; destination d_test { file("/var/log/test"); }; filter f_test { host("testhost"); }; filter f_local7 { facility(local7); }; log { source(s_src); filter(f_test); filter(f_local7); destination(d_test); }; log { source(s_src); filter(f_local7); destination(d_messages); }; Would messages sent from host "testhost" with facility local7 go to just the first or both logs? John Delisle Corporate Technology Ceridian Canada Ltd 204-975-5909 This e-mail and any files transmitted with it are considered confidential and are intended solely for the use of the individual or entity to whom they are addressed (intended). This communication is subject to agent/client privilege.If you are not the intended recipient (received in error) or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited.If you have received this e-mail in error please notify the sender immediately.
Hi All! On 2001 Apr 12, John_Delisle@ceridian.ca wrote:
filter f_test { host("testhost"); }; filter f_local7 { facility(local7); };
log { source(s_src); filter(f_test); filter(f_local7); destination(d_test); }; log { source(s_src); filter(f_local7); destination(d_messages); };
Would messages sent from host "testhost" with facility local7 go to just the first or both logs?
Both. -- PGP ID 0x8D143771, /C5 95 43 F8 6F 19 E8 29 53 5E 96 61 05 63 42 D0 GPG ID ABA0E8B2, 45CF B559 8281 8091 8469 CACD DB71 AEFC ABA0 E8B2 The quickest way of ending a war is to lose it - George Orwell
participants (2)
-
John_Delisle@ceridian.ca
-
SZALAY Attila