Preprocessors operate on the raw data stream and transform it. They are run before data reaches the codec and do not know or care about tremor's internal representation.
Online codecs, preprocessors can be chained to perform multiple operations in succession.
Splits the input into lines, using character 10
\n as the line separator.
Buffers any line fragment that may be present (after the last line separator), till more data arrives. This makes it ideal for use with streaming onramps like tcp, to break down incoming data into distinct events.
Any empty lines present are forwarded as is -- if you want to remove them, please chain the remove-empty preprocessor with this preprocessor. An example:
preprocessors: - lines - remove-empty
Note: the proliferation of various lines preprocessors here will go away once preprocessors support configuration.
Variant of the lines preprocessor, that uses null byte
\0 as the line separator.
Variant of the lines preprocessor, that uses pipe character
| as the line separator.
Variant of the lines preprocessor, that does not buffer any data that may be present after the last line separator -- the fragment is forwarded as is (i.e. treated as a full event).
Decodes base64 encoded data to the raw bytes.
Decompresses a data stream. It is assumed that each message reaching the decompressor is a complete compressed entity.
The compression algorithm is detected automatically from the supported formats. If it can't be detected, the assumption is that the data was decompressed and will be sent on. Errors then can be transparently handled in the codec.
Decompress GZ compressed payload.
Decompress Zlib ( deflate ) compressed payload.
Decompress Xz2 ( 7z ) compressed payload.
Decompress framed snappy compressed payload ( does not support raw snappy ).
Decompress Lz4 compressed payload.
Reassembles messages that were split apart using the GELF chunking protocol.
If the GELF messages were sent compressed, you can decompress them by chaining the decompress preprocessor. An example is documented here -- you may need to apply
decompress either before and/or after the reassembly here, depending on how your GELF client(s) behave.
Removes empty messages (aka zero len).
Separates a continuous stream of data based on length prefixing. The length for each package in a stream is based on the first 64 bit decoded as an unsigned big endian value.
Extracts the message based on prefixed message length given in ascii digits which is followed by a whitespace as used in RFC 5425 for TLS/TCP transport for syslog.