1824517 Members
3914 Online
109672 Solutions
New Discussion юеВ

redirecting ftp logs

 
chyaroslav
Occasional Advisor

redirecting ftp logs

Hellow! I tried to redirect ftp logs from syslog.log file to another. A changed the /etc/syslog.conf file as follow:
mail.debug /var/adm/syslog/mail.log
daemon.info /var/adm/syslog/inetd.log

*.info;mail.none;daemon.none /var/adm/syslog/syslog.log
But ftpd daemon still logging to syslog.log file. How can i redirect ftpd log to anothe file. Other inetd daemons are now logging into the /var/adm/syslog/inetd.log file
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: redirecting ftp logs

ftpd logs using local5, not daemon. Add this line to syslog.conf:

local5.info /var/adm/syslog/ftp.log

HOWEVER, each line is processed one at a time. So unless you specify local5.none for your syslog.log file, ftpd will duplicate the messages in both files. It should look like this:

*.info;mail.none;local5.none /var/adm/syslog/syslog.log


Bill Hassell, sysadmin
RAC_1
Honored Contributor

Re: redirecting ftp logs

You need to know locale level that ftpd uses.

Then ftpd has option that does this. I think it's -i option. check man page of ftpd.
There is no substitute to HARDWORK
chyaroslav
Occasional Advisor

Re: redirecting ftp logs

Thanks for your help! I don't know why in man pages written that ftpd logs into daemon facility. Actually it logs into local5.