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

List:       pureftpd-list
Subject:    Re: [pure-ftpd] writing FTP messages to seperate file in syslog-ng
From:       Thijs Hakkenberg <thijs () ebrius ! nl>
Date:       2010-11-08 13:30:46
Message-ID: 4CD7FB86.2090604 () ebrius ! nl
[Download RAW message or body]


I've changed it into
filter f_ftp    { facility(ftp); };
destination ftp { file("/var/log/ftp.log"); };
log { source(src); filter(f_ftp); destination(ftp); };

which works :)

Maybe someone of the pure-ftpd team could include this in the doc page?

On 8-11-2010 14:18, Stefan Lijewski wrote:
> In my case (also syslog-ng) following lines are working:
>
> filter f_ftp    { facility(local0); };
> destination ftp { file("/var/log/ftp.log"); };
> log { source(src); filter(f_ftp); destination(ftp); };
>
> Of course, if you have proper pureftp configuration (using local0 log
> facility). And if you don'y like the duplicate syslog, just add
> flags(final):
>
> log { source(src); filter(f_ftp); destination(ftp);flags(final); };
>
>
> W dniu 08.11.2010 14:05, Thijs Hakkenberg pisze:
>>   Dear List,
>>
>> on http://download.pureftpd.org/pub/pure-ftpd/doc/FAQ section * Log
>> files, it is explained how to make syslog log the FTP messages in a
>> seperate dir.
>> However, on my SLES 10 SP2 distro, syslog NG is currently used.
>> Does anyone know how to make syslog_ng do the same?
>>
>> working line from /etc/syslog-ng/syslog-ng.conf:
>>
>> #
>> # Warnings (except iptables) in one file:
>> #
>> destination warn { file("/var/log/warn" fsync(yes)); };
>> log { source(src); filter(f_warn); destination(warn); };
>>
>> I've tried this but it doesn't work:
>>
>> #FTP own log
>> destination warn { file("/var/log/ftp"); };
>> log { source(src); filter(f_ftp); destination(ftp); };
>>
>> Regards,
>> -- 
>> logo
>>
>> 	
>>
>>
>> * Thijs Hakkenberg *
>>
>> +31(0)648761131
>> thijs@ebrius.nl<mailto:thijs@ebrius.nl>
>> http://ebrius.nl
>>
>>
>>
>> Ebrius VOF
>> KVK:34263949
>>


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

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