RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 951727 - Untill ver 6.2.0 of rsyslog, the %pri-text% property includes the numeric string
Summary: Untill ver 6.2.0 of rsyslog, the %pri-text% property includes the numeric string
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rsyslog
Version: 6.4
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Tomas Heinrich
QA Contact: Dalibor Pospíšil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-12 21:48 UTC by Steve
Modified: 2013-11-21 23:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
local0.info<164> Cause: Numerical value of the PRI property was appended to the "pri-text" variable. Consequence: The resulting value look like this: "local0.info<164>". Fix: The "<N>" suffix was removed. Result: Now, the variable only contains textual facility and severity values.
Clone Of:
Environment:
Last Closed: 2013-11-21 23:40:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1716 0 normal SHIPPED_LIVE rsyslog bug fix update 2013-11-20 21:51:43 UTC

Description Steve 2013-04-12 21:48:59 UTC
Description of problem:
The released ver of rsyslog (5.8.10-6.el6.x86_64) has a bug where the %pri-text% template property returns the numeric code as part of the string.  This was fixed in ver 6.2.0 (http://www.rsyslog.com/doc/v6compatibility.html) 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. in rsyslog.conf create a template with %pri-text%
$template pri-test,"%pri%: %pri-test%\n"
2. use template
*.info  /var/log/pritest;pri-test
3.look at log file and notice the second field
164: local0.info<164>
  
Actual results:

The pri numeric code is appended to the end of the %pri-text% property field
Expected results:
No numeric code

Additional info:

The rsyslog team posted the following concerning this "bug": http://www.rsyslog.com/doc/v6compatibility.html

Property "pri-text"

Traditionally, this property did not only return the textual form of the pri ("local0.err"), but also appended the numerical value to it ("local0.err<133>"). This sounds odd and was left unnoticed for some years. In October 2011, this odd behaviour was brought up on the rsyslog mailing list by Gregory K. Ruiz-Ade. Code review showed that the behaviour was intentional, but no trace of what the intention was when it was introduced could be found. The documentation was also unclear, it said no numerical value was present, but the samples had it. We agreed that the additional numerical value is of disadvantage. We also guessed that this property is very rarely being used, otherwise the problem should have been raised much earlier. However, we didn't want to change behaviour in older builds. So v6 was set to clean up the situation. In v6, text-pri will always return the textual part only ("local0.err") and the numerical value will not be contained any longer inside the string. If you actually need that value, it can fairly easily be added via the template system.

Comment 9 errata-xmlrpc 2013-11-21 23:40:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1716.html


Note You need to log in before you can comment on or make changes to this bug.