Skip to content

RFC New JSON output plugin

Eric Leblond netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2store Common Information Model name in ulogd keyfilter/raw2packet/ulogd_raw2packet_BASE.c filter/ulogd_filter_IP2STR.c include/ulogd/ulogd.h+15 -20 replies
2/2json: introduce new JSON output pluginconfigure.ac output/Makefile.am output/ulogd_output_JSON.c +1 more+291 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [ulogd RFC PATCH 0/2] New JSON output plugin

Hello,

Here's a patchset introducing a new output plugin for ulogd. Called JSON, this output plugin write events in JSON format to a file. This format has the advantage of being easily parsed by logging system such as logstash (or the proprietary splunk).

To ease interaction with other source events such as syslog, it is important to use the normalised field names. Common Information Model is used by splunk and seem to be used in most logstash config snippet. So I've decided to upgrade ulogd key to be able to store the CIM key name in them.

Patchset statistics:

 configure.ac                              |  12 ++
 filter/raw2packet/ulogd_raw2packet_BASE.c |  10 +-
 filter/ulogd_filter_IP2STR.c              |   4 +
 include/ulogd/ulogd.h                     |   3 +
 output/Makefile.am                        |  10 ++
 output/ulogd_output_JSON.c                | 254 ++++++++++++++++++++++++++++++
 ulogd.conf.in                             |  15 ++
 7 files changed, 306 insertions(+), 2 deletions(-)

BR,
--
Eric