[syslog-ng] [Bug 261] New: DOCBUG: --rekey
bugzilla at bugzilla.balabit.com
bugzilla at bugzilla.balabit.com
Tue Nov 12 12:29:35 CET 2013
https://bugzilla.balabit.com/show_bug.cgi?id=261
Summary: DOCBUG: --rekey
Product: syslog-ng
Version: 3.5.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: unspecified
Component: syslog-ng
AssignedTo: bazsi at balabit.hu
ReportedBy: bugzilla.balabit at faxm0dem.org
Type of the Report: ---
Estimated Hours: 0.0
In Example 2.3. (Using the rekey() option) from §2.10.1. (Specifying data types in value-pairs) the documentation claims:
"The rekey() option can be used with the format-json template-function as well, using the following syntax:
$(format-json --key .cee.* --rekey --shift 4 --add-prefix events.)"
However, when using this syntax, the config parser fails with the following error:
"Error parsing config, Error compiling template (Error parsing value-pairs: expected an equal sign in key=value pair)"
The correct syntax (which works, as suggested by algeron on IRC) would be the following:
$(format-json --rekey .cee.* --add-prefix events.
--
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the syslog-ng
mailing list