Operating System - HP-UX
1830864 Members
2872 Online
110017 Solutions
New Discussion

Make syslogd write facility and priority

 
SOLVED
Go to solution
Jorge Fabregas
Regular Advisor

Make syslogd write facility and priority

Hello all,

Everyone knows the typical format of the all logs written by syslogd, which is, date|machine|process etc...

Is there a way to make SYSLOGD write the facility and priority on all of it messages?

Thanks,
Jorge
5 REPLIES 5
James A. Donovan
Honored Contributor
Solution

Re: Make syslogd write facility and priority

I think you want the "-v" option.

See the syslogd man page.

Remember, wherever you go, there you are...
A. Clay Stephenson
Acclaimed Contributor

Re: Make syslogd write facility and priority

If you do a man logger (which feeds syslod) you will find that these attributes that you are interested in are optional. Syslogd can only default values that are not supplied.
In short the answer is no. You must address the subsystems that are actually feed syslog.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Make syslogd write facility and priority

Once you restart syslogd with -v, you will see a slightly cryptic code which contains the facility and priority. Attached is a script that will decode your syslog in an easier to read formay.


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: Make syslogd write facility and priority

Oops, here is the script.


Bill Hassell, sysadmin
Jorge Fabregas
Regular Advisor

Re: Make syslogd write facility and priority

Hi Bill,

Thanks for the script! I does the work! Thanks!

Jorge