Operating System - HP-UX
1831995 Members
3145 Online
110034 Solutions
New Discussion

Re: type of messages in syslog

 
miki leon
Advisor

type of messages in syslog

Hi

i have a que. on syslog .

i know that the messages that come to the syslog is applic. that used the syslog system call to report to the syslog about a problem .

but i m looking for a doc that will tell me what applic is using in hp-ux the syslog by detault to report there messages

love unix
5 REPLIES 5
Bill McNAMARA_1
Honored Contributor

Re: type of messages in syslog



man 3C syslog
for info on how applications write to the syslog.

The /etc/syslog.conf can filter what alert levels get written. see syslogd(1M) for more info on that file.

Later,
Bill
It works for me (tm)
Rainer von Bongartz
Honored Contributor

Re: type of messages in syslog

you could start syslog in debug mode and you will see which applications send what
facility/priority messages.

/sbin/init/syslogd stop
/usr/sbin/syslogd -k

Now watch syslog.log

Regards
Rainer

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
V. V. Ravi Kumar_1
Respected Contributor

Re: type of messages in syslog

Hi,

Stop present syslog service. You start Syslog with -d option
#syslog -d
it will start syslog in debugging in mode, which gives details about each message that is written to syslog.log

Also check the following link.
http://userpages.umbc.edu/~jack/ifsm498d/syslog.html

Regards
Never Say No
Rainer von Bongartz
Honored Contributor

Re: type of messages in syslog

SORRY:

syslogd -d of course not -k

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
David_246
Trusted Contributor

Re: type of messages in syslog

Hi,

If I understand you right you are looking for the tool "logger". This is a way to handy tool I always use, please look at the examples of the man-page. It's as easy as that.

Best Regs David
@yourservice