Bug 1054167

Summary: omjournal - a warning for using pre-v6 syntax isn't issued when it should be
Product: [Fedora] Fedora Reporter: Tomas Heinrich <theinric>
Component: rsyslogAssignee: Tomas Heinrich <theinric>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: jlieskov, lkundrak, mah.darade, pvrabec, theinric
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rsyslog-7.4.8-1.f21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1054171 (view as bug list) Environment:
Last Closed: 2014-02-24 10:10:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1054171    
Attachments:
Description Flags
fix for the issue none

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