mozilla

Heka Message

Message Variables

  • uuid (required, []byte) - 16 byte array containing a type 4 UUID.
  • timestamp (required, int64) - Number of nanoseconds since the UNIX epoch.
  • type (optional, string) - Type of message i.e. “WebLog”.
  • logger (optional, string) - Data source i.e. “Apache”, “TCPInput”, “/var/log/test.log”.
  • severity (optional, int32) - Syslog severity level.
  • payload (optional, string) - Textual data i.e. log line, filename.
  • env_version (optional, string) - Unused, legacy envelope version.
  • pid (optional, int32) - Process ID that generated the message.
  • hostname (optional, string) - Hostname that generated the message.
  • fields (optional, Field) - Array of Field structures.

Field Variables

  • name (required, string) - Name of the field (key).

  • value_type (optional, int32) - Type of the value stored in this field.
    • STRING = 0 (default)
    • BYTES = 1
    • INTEGER = 2
    • DOUBLE = 3
    • BOOL = 4
  • representation (optional, string) - Freeform metadata string where you can describe what the data in this field represents. This information might provide cues to assist with processing, labeling, or rendering of the data performed by downstream plugins or UI elements. Examples of common usage follow:

  • value_* (optional, value_type) - Array of values, only one type will be active at a time.