Skip to content

Codec should not accept invalid json {}{}  #31

@jordansissel

Description

@jordansissel

The codec should not accept this input:

{ "hello": "world" }{ "goodbye": "moon" }

The above is two json objects that, alone, are valid, but combined, are not.

Expected result: Logstash should tag this event as _jsonparsefailure and store the whole payload in the message field.

Actual result: in Logstash 5.x is that the first json object is accepted and the 2nd one is lost/ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions