From 5351538b0aaa3db199b1116c33b38542e81edb41 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Sun, 1 Apr 2012 18:58:58 +0200 Subject: impstats: added $PStatsJSON directive --- ChangeLog | 1 + doc/impstats.html | 4 ++++ plugins/impstats/impstats.c | 7 ++++++- runtime/statsobj.c | 11 +++++++++-- runtime/statsobj.h | 14 ++++++++++++-- 5 files changed, 32 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8ac3f62c..4e2d0468 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ --------------------------------------------------------------------------- Version 6.3.8 [DEVEL] 2012-02-?? +- added $PStatsJSON directive to permit stats records in JSON format - added "date-unixtimestamp" property replacer option to format as a unix timestamp (seconds since epoch) - added "json" property replacer option to support JSON encoding on a diff --git a/doc/impstats.html b/doc/impstats.html index 260c1aa4..64b04a30 100644 --- a/doc/impstats.html +++ b/doc/impstats.html @@ -36,6 +36,10 @@ is 5 (syslog).This is useful for filtering messages.
  • $PStatSeverity <numerical severity>
    The numerical syslog severity code to be used for generated messages. Default is 6 (info).This is useful for filtering messages.
  • +
  • $PStatJSON <on/off> (rsyslog v6.3.8+ only)
    +If set to on, stats messages are emitted as structured cee-enhanced syslog. If +set to off, legacy format is used (which is compatible with pre v6-rsyslog). +
  • Caveats/Known Bugs: