Nginx Error Log Decoder Module (DEPRECATED)

We are moving to a configuration based setup to allow for more flexible transformations. The following will produce the equivalent behavior.

decoder_module  = {
      time      = "lpeg.heka#set_timestamp",
      msg       = "lpeg.heka#set_payload",
      severity  = "lpeg.heka#set_severity",
      pid       = "lpeg.heka#set_pid"

1. Decoder Configuration Table

  • none

2. Functions

2.1. decode

Decode and inject the resulting message


  • data (string) - Raw data from the input sandbox that needs parsing/decoding/transforming
  • default_headers (table/nil/none) - 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: In the case of multiple decoders this may be the message from the previous input/decoding step.
  • mutable (bool/nil/none) - Flag indicating if the decoder can modify the default_headers/msg structure in place or if it has to be copied first.


  • err (nil, string) or throws an error on invalid data or an inject message failure
    • nil - if the decode was successful
    • string - error message if the decode failed (e.g. no match)

source code: error.lua

results matching ""

    No results matching ""