Logging syslog facility and priority
From Brandonhutchinson.com
(Difference between revisions)
(New page: == RHEL 5 == On RHEL 5, this 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 sys...) |
|||
| (2 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
== RHEL 5 == | == RHEL 5 == | ||
| - | On RHEL 5, | + | On RHEL 5, logging the syslog facility and priority is possible beginning with '''sysklogd''' 1.4.1-40. |
From the package changelog: | From the package changelog: | ||
| Line 9: | Line 9: | ||
From sysklogd(8): | From sysklogd(8): | ||
| - | -S | + | -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 | ||
logged with each locally-written message. | logged with each locally-written message. | ||
| - | Add -S or -SS to SYSLOGD_OPTIONS in | + | 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.
