Skip to content

Support byte stream log collection #3267

@tigrannajaryan

Description

@tigrannajaryan

Logs are today assumed to be UTF text, which is split into records using some delimiter pattern. In some cases it is useful to treat the logs files simply as byte streams with unspecified encoding. It would be useful to have this capability added.

To enable it we need the following:

  1. Support binary data type (byte slice). It needs to be added to OTLP as one of the data types for AnyValue.
  2. For filelog when encoding=nop populate the Body with binary data type instead of string data type (which according to OTLP's Protobuf requirements is limited to valid UTF-8 strings.
  3. Allow disabling splitting of log entires (via multiline setting?). Split into chunks by honouring max_log_size setting to limit the size of each individual record.
  4. Optionally: store the starting position of the chunk in the stream so that the stream can be reconstructed correctly if log records are delivered to the final destination out of order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions