Logging syslog facility and priority

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
From sysklogd(8):
From sysklogd(8):
-
-S Verbose logging. If specified once, the numeric facility and
+
-S Verbose logging. If specified once, the numeric facility and
priority are logged with each locally-written message. If speci-
priority are logged with each locally-written message. If speci-
fied more than once, the names of the facility and priority are
fied more than once, the names of the facility and priority are

Revision as of 17:00, 4 June 2008

RHEL 5

On RHEL 5, logging the syslog facility and priority is possible beginning with sysklogd 1.4.1-40.

From the package changelog:

* Wed Jun 20 2007 Peter Vrabec <pvrabec@redhat.com> - 1.4.1-40
- enable sysklogd to include priority/facility in message 
  Resolves: #223573

From sysklogd(8):

       -S    Verbose logging. If specified once,  the  numeric  facility  and
             priority are logged with each locally-written message. If speci-
             fied more than once, the names of the facility and priority  are
             logged with each locally-written message.

Add -S or -SS to SYSLOGD_OPTIONS in /etc/sysconfig/syslog and restart the syslog service for the change to take effect.

RHEL 4 and earlier

The provided sysklogd package does not appear to provide this capability.

Personal tools