Hello, I'd like to use syslog-ng to log fetchmail logs. For the moment, fetcmail logs are in /var/log/fetchmail.log and I'd like to put it in /var/log/$YEAR:$MONTH$DAY, to have a separate log file for each day. I try to add that: source fetchmail { file("/var/log/fetchmail.log"); }; destination df_fetchmail { file("/var/log/$YEAR/$MONTH/$DAY/fetchmail.log"); }; log { source(fetchmail); filter(f_fetchmail); destination(df_fetchmail); }; But it dosn't works. Do you have an idea? Thanks :-) Bye
On Wed, Feb 01, 2006 at 06:41:15PM +0100, Thierry B wrote:
Hello,
I'd like to use syslog-ng to log fetchmail logs.
<SNIP>
But it dosn't works.
What version are you on? You need to be on the 1.9.x series to tail a logfile like that. -- Nate "In computer science, we stand on each other's feet." - Reid, Brian K.
Nate Campi a écrit :
On Wed, Feb 01, 2006 at 06:41:15PM +0100, Thierry B wrote:
Hello,
I'd like to use syslog-ng to log fetchmail logs.
<SNIP>
But it dosn't works.
What version are you on? You need to be on the 1.9.x series to tail a logfile like that.
I've this version: ebian:/home/thierry# apt-cache show syslog-ng ...... Version: 1.6.5-2.2 I think you wanted to tell me 1.6.9 no? Because in my debian sid (which has the lastest packages of software), it's the version: 1.6.9-1. So it's better for all theses applications (fetchmail, amavis), that the use syslog options, to log their messages and I do a rule like that ? filter f_fetchmail { match("fetchmail") }; destination df_fetchmail { file("/var/log/$YEAR/$MONTH/$DAY/fetchmail.log"); }; log { source(s_all); filter(f_fetchmail); destination(df_fetchmail); }; Is it correct? Thanks :-). Bye
Nope, he meant 1.9.x, which is current 'unstable' series. The last stable release is at 1.6.x; that is, it don't do that. Thierry B wrote:
Nate Campi a écrit :
On Wed, Feb 01, 2006 at 06:41:15PM +0100, Thierry B wrote:
Hello,
I'd like to use syslog-ng to log fetchmail logs.
<SNIP>
But it dosn't works.
What version are you on? You need to be on the 1.9.x series to tail a logfile like that.
I've this version:
ebian:/home/thierry# apt-cache show syslog-ng ...... Version: 1.6.5-2.2
I think you wanted to tell me 1.6.9 no?
Because in my debian sid (which has the lastest packages of software), it's the version: 1.6.9-1.
So it's better for all theses applications (fetchmail, amavis), that the use syslog options, to log their messages and I do a rule like that ?
filter f_fetchmail { match("fetchmail") };
destination df_fetchmail { file("/var/log/$YEAR/$MONTH/$DAY/fetchmail.log"); };
log { source(s_all); filter(f_fetchmail); destination(df_fetchmail); };
Is it correct?
Thanks :-).
Bye
_______________________________________________ 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
Rob Munsch a écrit :
Nope, he meant 1.9.x, which is current 'unstable' series. The last stable release is at 1.6.x; that is, it don't do that.
Thierry B wrote:
Nate Campi a écrit :
On Wed, Feb 01, 2006 at 06:41:15PM +0100, Thierry B wrote:
Hello,
I'd like to use syslog-ng to log fetchmail logs.
<SNIP>
But it dosn't works.
What version are you on? You need to be on the 1.9.x series to tail a logfile like that.
I've this version:
ebian:/home/thierry# apt-cache show syslog-ng ...... Version: 1.6.5-2.2
I think you wanted to tell me 1.6.9 no?
Because in my debian sid (which has the lastest packages of software), it's the version: 1.6.9-1.
So it's better for all theses applications (fetchmail, amavis), that the use syslog options, to log their messages and I do a rule like that ?
filter f_fetchmail { match("fetchmail") };
destination df_fetchmail { file("/var/log/$YEAR/$MONTH/$DAY/fetchmail.log"); };
log { source(s_all); filter(f_fetchmail); destination(df_fetchmail); };
Is it correct?
Thanks :-).
Bye
_______________________________________________ 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
_______________________________________________ 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
Hello, So what I have to do to log fetchmail logs and maildrop log to /var/log/$YEAR/$MONTH:$DAY/fetchmail.log and maildrop.log ? I try that: destination df_maildrop { file("/var/log/$YEAR/$MONTH/$DAY/maildrop.log"); }; filter f_maildrop { program("^maildrop"); }; # maildrop log { source(s_all); filter(f_maildrop); destination(df_maildrop); }; but it doesn't work :-( Thanks.
participants (3)
-
Nate Campi
-
Rob Munsch
-
Thierry B