Bug 1054167 - omjournal - a warning for using pre-v6 syntax isn't issued when it should be
Summary: omjournal - a warning for using pre-v6 syntax isn't issued when it should be
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rsyslog
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomas Heinrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1054171
TreeView+ depends on / blocked
 
Reported: 2014-01-16 11:44 UTC by Tomas Heinrich
Modified: 2016-09-20 04:51 UTC (History)
5 users (show)

Fixed In Version: rsyslog-7.4.8-1.f21
Clone Of:
: 1054171 (view as bug list)
Environment:
Last Closed: 2014-02-24 10:10:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
fix for the issue (909 bytes, patch)
2014-01-16 11:45 UTC, Tomas Heinrich
no flags Details | Diff

Description Tomas Heinrich 2014-01-16 11:44:28 UTC
Description of problem:
A Warning for using pre-v6 syntax isn't issued when it should be and vice versa.

Version-Release number of selected component (if applicable):
rsyslog-7.4.7-1.fc21

How reproducible:
Always.

Steps to Reproduce:
$ cp /etc/rsyslog.conf{,.bck}
$ cat > /etc/rsyslog.conf <<EOF
$modload omjournal
*.* :omjournal:
EOF
$ systemctl restart rsyslog
$ grep "rsyslogd-(2207|2215)" /var/log/messages
Jan 16 06:22:13 rhel-7 rsyslogd-2207: error during parsing file /etc/rsyslog.conf, on or before line 2: errors occured in file '/etc/rsyslog.conf' around line 146 [try http://www.rsyslog.com/e/2207 ]

$ sed -i -e 's/:omjournal:/:foo:/' /etc/rsyslog.conf
$ systemctl restart rsyslog
$ grep "rsyslogd-(2207|2215)" /var/log/messages
Jan 16 06:22:13 rhel-7 rsyslogd-2215: omjournal supports only v6+ config format, use: action(type="omjournal" ...) [try http://www.rsyslog.com/e/2215 ]
Jan 16 06:22:13 rhel-7 rsyslogd-2207: error during parsing file /etc/rsyslog.conf, on or before line 2: errors occured in file '/etc/rsyslog.conf' around line 146 [try http://www.rsyslog.com/e/2207 ]

Actual results:
The warning is displayed for actions other than ":omjournal:" and not when they should be.

Expected results:
The reverse of the current state.

Comment 1 Tomas Heinrich 2014-01-16 11:45:42 UTC
Created attachment 851012 [details]
fix for the issue


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