Logging syslog facility and priority

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Current revision (17:00, 4 June 2008) (edit) (undo)
 
Line 14: Line 14:
logged with each locally-written message.
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.
+
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 ==
== RHEL 4 and earlier ==
The provided sysklogd package does not appear to provide this capability.
The provided sysklogd package does not appear to provide this capability.

Current revision

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