Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syslogd: translating priority 14 to facility.level 1

Status
Not open for further replies.

daFranze

Technical User
Dec 29, 2003
1,334
DE
Hi,

I am pretty new to hp-ux, I have a lot of experiance with Solaris.

Currently I am facing a hp-ux problem: some processes are writing a lot of information to syslog and to syslog.log.
We intend to configure syslogd to write these infos to a separate file. Unfortunately we do not know facility and level of theses messages...

We stopped syslogd and restarted with debug option -d.

We get these debugoutputs:
logmsg: pri 14, flags 0, from serv174, msg Apr 19 12:11:47 blahblahblah

How can I translate pri 14 to a eg. local5.info?

Afaik Solaris syslogd shows facility.level in debug output!?

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
nobody? :-(

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
whoever is interested in the solution...
found out it is a bitfield 1^^0, 1^^1 and 1^^2 are the level and other bits are faclity

you can find more info in syslog.h headerfile

btw 14dec is 00001110bin, which means it's facility 1dec=00001bin=user <logical OR> severity 6dec=110bin=info

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Thanks Ken!

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top