[syslog-ng] problem to log fetcmail logs

Thierry B syslogng at thierry.eu.org
Fri Feb 3 10:38:35 CET 2006


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 at 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 at 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.



More information about the syslog-ng mailing list