Skip to content

expose and set a default for the maximum size of the buftok #11

Description

@jsvd

This has the intended effect of stopping misuses and misconfigurations of this codec when data either has no \n or a different separator, thus making logstash OOM with thousands of events concatenated into 1.

The FileWatch::BufferedTokenizer constructor already exposes a size_limit, we just need to expose it and, in runtime, to catch the exception, dump it, and potentially abort the pipeline or drop the data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions