[syslog-ng] problem to log fetcmail logs
Thierry B
syslogng at thierry.eu.org
Wed Feb 1 18:41:15 CET 2006
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
More information about the syslog-ng
mailing list