Operating System - HP-UX
1831339 Members
2976 Online
110024 Solutions
New Discussion

syslog.conf and use of local0-7

 
BFA6
Respected Contributor

syslog.conf and use of local0-7

Hi,

Config: B.11.00 U 9000/800

I spent a while this morning trying to get syslogd to log FTP messages to a different file than /var/adm/syslog/syslog.log

I thought ftp ( as suggested by man pages for syslog(3C), syslogd etc ) uses the daemon.info, .alert etc facility.

However it appears it uses local5 instead, once I added a local5.info entry it logged ftp messages where I wanted.

I can't find much out for HPUX about the use of local0-7, the man pages just say they are reserved for local use.

I am just wondering what else uses local5 and in fact what other programs use any of the local facilities.

Can anyone point me to an authoratative source for what the local0-7 facilities are for and who uses what?

Thanks.
Simon Stanford.
3 REPLIES 3
Geoff Wild
Honored Contributor

Re: syslog.conf and use of local0-7

HP's ftp will use daemon.info...

You can do it like this:

# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
daemon.info;mail.none /var/adm/syslog/daemon.log
*.info;mail.none,daemon.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *

Make sure inetd.conf has -l

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
BFA6
Respected Contributor

Re: syslog.conf and use of local0-7

Hi Geoff,

Well I thought that but it did not appear to work at all, ftp still went to syslog.log

In the attached file are the two versions I tried.


Regards,
Simon


Geoff Wild
Honored Contributor

Re: syslog.conf and use of local0-7

Actually - that is correct - depends on version of ftpd - yours does go to local5...

Other thing you can do, is in inetd.conf add
-i and -o

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -i -o


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.