Operating System - HP-UX
1844155 Members
2092 Online
110229 Solutions
New Discussion

How can I stop ftp from logging to syslog.log

 
S.Rider
Regular Advisor

How can I stop ftp from logging to syslog.log

We have some user applications that (in their infinite wisdom) fire up a ftp via crom every minute for every hour for every day. Needless to say, this fill up syslog.log with a bunch of useless (to us) information that makes it difficult to find real stuff.
Is there a way to turn of ftp logging or to re-direct it somewhere else ?
Ride Boldly Ride, but watch out for El Dorado's
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: How can I stop ftp from logging to syslog.log

Check your /etc/inetd.conf file and look for the ftpd line. It probably has a '-l' on the end. Remove that and your logging woes should decrease.

Have a look at 'man ftpd' for other options available to you.
HP-FMS
Frequent Advisor

Re: How can I stop ftp from logging to syslog.log


Hi Rider,

As per patrick, the /etc/inetd.conf file to be edit..

One more option is, execute the followind cmd once.....

#inetd -l

Once you execute, It will automatically stop the ftp log entry in syslog.log file..


Fyi,.
H.Kannan
Patrick Wallek
Honored Contributor

Re: How can I stop ftp from logging to syslog.log

The '-l' option to inetd is totally separate from the '-l' option to ftpd.

When you invoke 'inetd -l' it turns inetd connection logging on (or off, depending on its state at the time). This will log ALL connections to inetd.

The '-l' option to ftpd logs information specific to ftpd when an ftp connection is made. This has absolutely nothing to do with inetd connection logging.
TTr
Honored Contributor

Re: How can I stop ftp from logging to syslog.log

After you edit the inetd.conf and remove the "-i" and maybe the "-v" if it's there at the end of the ftp line in /etc/inetd.conf, you have to reload the inetd by issuing "inetd -c". This way the ftp changes will take effect. This does not completely eliminate ftpd logging, you still get the initial ftpd connection line but it is only one line per ftp connection.

If you look at http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1075311 it does not completely eliminate logging either but you can direct the verbose messages to another file.