Multi-line Heka JSON Message Decoder Module

The above link describes the Heka message format with a JSON schema. The JSON will be decoded and passed directly to inject_message so it needs to decode into a Heka message table described here:

1. Decoder Configuration Table

  • none

2. Functions

2.1. decode

Decode and inject the resulting message


  • data (string) - JSON messages, one per line, with a Heka schema
  • default_headers (optional table) - Heka message table containing the default header values to use, if they are not populated by the decoder. If 'Fields' is specified it should be in the hashed based format see:


  • nil - throws an error on an invalid data type, JSON parse error, inject_message failure etc.

source code: json_heka.lua

results matching ""

    No results matching ""