Operating System - HP-UX
1821051 Members
2504 Online
109631 Solutions
New Discussion юеВ

Re: Messages in console from syslog

 
SOLVED
Go to solution
R.O.
Esteemed Contributor

Messages in console from syslog

Hi,

I am receiving in the console messages like this:

May 18 13:02:02 system1 syslogd: syslog/udp: unknown service

The syslogd daemon is running and is working, because I have the normal entries in syslog.log. Does anybody know why this message appears?

Regards,
"When you look into an abyss, the abyss also looks into you"
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: Messages in console from syslog

Shalom,

I would first check the syslog.conf file and see if someone is trying to redirect a copy of syslog output to another server. This being done without a supporting entry in /etc/services could cause the problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
R.O.
Esteemed Contributor

Re: Messages in console from syslog

Hello!

Here is syslog.conf:

# @(#)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
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *

In /etc/services the line for syslog is commented:

#syslog 514/udp # remote system logging

Regards,
"When you look into an abyss, the abyss also looks into you"
Ninad_1
Honored Contributor

Re: Messages in console from syslog

I do not feel from your syslog.conf file that any remote syslog is being used (If thats the complete file you have pasted)
Try commenting out i.e. remove the # before the syslog in /etc/services file and see if there are no more messages of unknown service.

Regards,
Ninad
R.O.
Esteemed Contributor

Re: Messages in console from syslog

Hi,

This is the entire syslog.conf. I have the same commented line in other nodes, and no messages appear on them.
Regards,
"When you look into an abyss, the abyss also looks into you"
Bill Hassell
Honored Contributor

Re: Messages in console from syslog

The syslog.conf file only controls what the local machine does with syslog entries. If another computer is using your local syslog, there will be an additional field with the hostname in each of those log entries.

The /etc/services file is your problem. The comment in front of syslog means that there is no name for the syslog service. In this case, it only produces an extraneous error message. Take away the # in the first column, restart syslogd and the error messages will go away. Other network services may crash if there the program requires a service name in /etc/services.

To restart syslogd:

kill -HUP $(cat /var/run/syslog.pid)


Bill Hassell, sysadmin
R.O.
Esteemed Contributor

Re: Messages in console from syslog

Thank you ! It was the entry /etc/services, after patch the system.
"When you look into an abyss, the abyss also looks into you"