I have a Proftpd v1.3.2 server, and I need to send every logs (system logs + auths logs + xferlogs) to a remote syslog server. It works fine for system+auth logs. But even if "TransferLog
" was removed from the configuration file, Proftpd keeps opening /var/log/xferlog
to log transferts (I checked with lsof), and sends nothing to syslog server (I checked with tcpdump).
How can I tell proftpd to send xferlogs to a remote syslog server ?
Best Answer
Ok, I found a solution : using fifo. In
/etc/proftpd/proftpd.conf
:Then :
And a Perl script like that one (inspired from several ones found on the web), listening at the other side of the fifo :
If you have a cleaner solution... :-)