--------------------- LOGGING ---------------------


Log messages are sent to the syslog daemon. You can disable logging with
'-f none'.
If you want all FTP messages to be redirected to a file, say /var/log/ftp,
add this line to your /etc/rsyslog.conf file:

ftp.*   /var/log/ftp

Then restart your syslogd daemon:

killall -HUP rsyslogd

You can also drop your old "syslogd" and "klogd" programs for Metalog, an
efficient alternative: http://metalog.sourceforge.net/

Names of uploaded/downloaded files are logged with paths like this:

                           /home/ftp//pub/bla.jpg
                           
The double-slash ('//') is the chroot limit.


Set Log Rotation


 log]# cd /etc
 etc]# cd logrotate.d
 logrotate.d]# cat rsyslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron /var/log/xferlog {
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
logrotate.d]#


'opensource' 카테고리의 다른 글

Pureftpd MySQL authentication README  (0) 2010.06.22
Pureftpd Virtual-Users README  (0) 2010.06.22
redmine  (0) 2010.06.17
freebsd documents  (0) 2010.04.08
pureftpd - OPTIMIZING FOR HIGH LOAD  (0) 2010.02.20
Latest update: 2010. 2. 20. 16:35