summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-04-19 15:20:16 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-04-19 15:20:16 +0200
commit7f0cd8c8b93ca395949e5d28c3a8f422e6695c8d (patch)
tree768dd92ae0d411c0a14d125704c1a2a8dc1834d1 /template.h
parent30b0a28786c5c198223cf2fa354d906710f68e0a (diff)
downloadrsyslog-7f0cd8c8b93ca395949e5d28c3a8f422e6695c8d.tar.gz
rsyslog-7f0cd8c8b93ca395949e5d28c3a8f422e6695c8d.tar.xz
rsyslog-7f0cd8c8b93ca395949e5d28c3a8f422e6695c8d.zip
added the "jsonf" property replacer option (and fieldname) & bugfix
bugfix: property replacer option "json" could lead to content loss message was truncated if escaping was necessary
Diffstat (limited to 'template.h')
-rw-r--r--template.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/template.h b/template.h
index a9eff6b1..f55f64b3 100644
--- a/template.h
+++ b/template.h
@@ -91,6 +91,7 @@ struct templateEntry {
int field_expand; /* use multiple instances of the field delimiter as a single one? */
es_str_t *propName; /**< property name (currently being used for CEE only) */
+ es_str_t *fieldName; /**< field name to be used for structured output */
enum tplFormatTypes eDateFormat;
enum tplFormatCaseConvTypes eCaseConv;
@@ -101,9 +102,10 @@ struct templateEntry {
unsigned bDropLastLF: 1; /* drop last LF char in msg (PIX!) */
unsigned bSecPathDrop: 1; /* drop slashes, replace dots, empty string */
unsigned bSecPathReplace: 1; /* replace slashes, replace dots, empty string */
- unsigned bSPIffNo1stSP: 1; /* replace slashes, replace dots, empty string */
+ unsigned bSPIffNo1stSP: 1; /* be a space if 1st pos if field is no space*/
unsigned bCSV: 1; /* format field in CSV (RFC 4180) format */
unsigned bJSON: 1; /* format field JSON escaped */
+ unsigned bJSONf: 1; /* format field JSON *field* (n/v pair) */
} options; /* options as bit fields */
} field;
} data;