Bug 958183 - syslog-ng - Error parsing config, root plugin template-function not found in /usr/share/syslog-ng/include/scl/cim/template.conf
Summary: syslog-ng - Error parsing config, root plugin template-function not found in ...
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: peter czanik
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 13:07 UTC by Per Jessen
Modified: 2016-06-27 07:05 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Jessen 2015-12-07 13:07:02 UTC
Hardware - office24, IBM Thinkcentre, MSL library host.
Software - latest Tumbleweed (I ran an update this morning):

# syslog-ng -F -f /etc/syslog-ng/syslog-ng.conf
[2015-12-07T14:05:14.618955] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode Please update it to use the syslog-ng 3.7 format at your time of convinience, compatibility mode can operate less efficiently in some cases. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file.;
[2015-12-07T14:05:14.620453] WARNING: Your configuration uses a newly introduced reserved word as identifier, please use a different name or enclose it in quotes before upgrading; keyword='template_function', config-version='3.5', version='3.7', filename='/usr/share/syslog-ng/include/scl/cim/template.conf', line='23:1'
Error parsing config, root plugin template-function not found in /usr/share/syslog-ng/include/scl/cim/template.conf at line 23, column 1:
                                                   included from /etc/syslog-ng/scl.conf line 32, column 1
                                                   included from /etc/syslog-ng/syslog-ng.conf line 3, column 1

template-function "format-cim" "$(format-json --pair @timestamp='${R_ISODATE}' --pair @message='${MSG}' --key .cim.* --shift 5 --key _* --key .* --replace-prefix .=_ --key *.*)\n";
^^^^^^^^^^^^^^^^^
Comment 1 peter czanik 2015-12-07 20:07:26 UTC
Know bug upstream, right now we are trying to figure out the right solution.

For now, change the version number in the configuration file to 3.7 as a quick fix.
Comment 2 Per Jessen 2015-12-08 07:00:00 UTC
(In reply to peter czanik from comment #1)
> Know bug upstream, right now we are trying to figure out the right solution.
> 
> For now, change the version number in the configuration file to 3.7 as a
> quick fix.

Thanks Peter, much appreciated!
Comment 3 peter czanik 2016-06-27 07:05:21 UTC
A fix is available, but not yet in a release: https://github.com/balabit/syslog-ng/issues/796