Heka Payload Decoder Module

Takes the raw data, which should be a UTF-8 string, and adds it to the Heka message Payload header.

1. Decoder Configuration Table

  • none

2. Functions

2.1. decode

Decode and inject the resulting message

Arguments

  • data (string) - Data to write to the msg.Payload
  • 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: http://mozilla-services.github.io/lua_sandbox/heka/message.html

Return

  • nil - throws an error on inject_message failure.

source code: payload.lua

results matching ""

    No results matching ""