[prev in list] [next in list] [prev in thread] [next in thread] 

List:       syslog-ng
Subject:    Re: [syslog-ng] problem to log fetcmail logs
From:       Thierry B <syslogng () thierry ! eu ! org>
Date:       2006-02-03 9:38:35
Message-ID: 43E3249B.5070909 () thierry ! eu ! org
[Download RAW message or body]

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.

_______________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic