Skip to content
Fabrice Bacchella edited this page Apr 21, 2023 · 4 revisions

Encoders

Encoders are used by senders to transform events to bytes that will be sent.

Encoders list

loghub.encoders.Csv

attributes:

  • values, an array of expressions that will be used to construct columns values.
  • features, CSV features to activate.
  • separator, the character used as field separator.
  • lineSeparator, the string used to separate records
  • nullValue, how to encode a null values.
  • dateFormat, if date value are found, how to encode them.
  • zoneId, the time zone used to format date if not provided.
  • locale, locale used to format date.
  • charset, the charset used to transform the CSV lines to bytes.

loghub.encoders.EvalExpression

This encoder evaluates an expression and generate a string.

attributes:

loghub.encoders.Gelf

attributes:

loghub.encoders.Msgpack

attributes:

loghub.encoders.Syslog

attributes:

loghub.encoders.ToJson

attributes:

loghub.encoders.Xml

attributes: