Hi All,
I'm trying to redirect my cyrus messages from /var/log/messages to /var/log/cyrus on OpenSuSE 10.2. I've changed my syslog-ng.log file as follows:
### Start of code snippet ###
filter f_cyrus { facility(local6); };
# # Log cyrus messages to a separate file. #
destination cyrusmessages { file("/var/log/cyrus"); }; log { source(src); filter(f_cyrus); destination(cyrusmessages); };
### End of code snippet ###
After restarting syslog-ng with rcsyslog restart, no messages show up in
Moby, Thanks, this seems to be working also for me, although I still do not understand why me config is not working. Best regards, Geert-jan -----Original Message----- From: Moby [mailto:moby@mobsternet.com] Sent: Tuesday, September 18, 2007 3:27 PM To: OS Subject: Re: [opensuse] Cyrus and Syslogng Geert-Jan de Laat wrote: the
file /var/log/cyrus.
Anyone have any clues on what I'm doing wrong?????
Best regards,
Geert-Jan
I have it working fine with the following settings, though mine is on SuSE 10.0 at the moment. Here are the entries in my syslog-ng.conf (you say you modified syslog-nf.log?): filter f_cyrus { program("lmtpunix") or program("imap") or program("ctl_cyrusdb") or program("cyr_expire") or match("master"); }; destination cyrus { file("/var/log/cyrus"); }; log { source(src); filter(f_cyrus); destination(cyrus); }; -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org