DarthMuppet
Dabbler
- Joined
- Jul 30, 2012
- Messages
- 18
I want to get the TransferLog content that usually gets put in the xferlog.log file into my syslog server. After about 3 hours of playing, i've come up with this:
1) edit proftpd.conf to include a TransferLog directive
2) edit syslog-ng.conf to include a source pointing to the file named in the TransferLog directive (this sends the logs to wherever the kern logs go, as they have no headers)
3) add a log record in my syslog server's syslog-ng.conf looking for a match with ' ftps '
4) add a filter to FreeNAS's syslog-ng.conf to keep the TransferLog entries out of /var/log/messages
Is there a better / easier way to do it?
TIA
DM
1) edit proftpd.conf to include a TransferLog directive
2) edit syslog-ng.conf to include a source pointing to the file named in the TransferLog directive (this sends the logs to wherever the kern logs go, as they have no headers)
3) add a log record in my syslog server's syslog-ng.conf looking for a match with ' ftps '
4) add a filter to FreeNAS's syslog-ng.conf to keep the TransferLog entries out of /var/log/messages
Is there a better / easier way to do it?
TIA
DM