Skip to content

split drops empty fieldsΒ #47

@TheVastyDeep

Description

@TheVastyDeep

logstash 8.10.1 installed via rpm on AWS.

The filter drops split fields if they are empty. If the field being split is an array of empty strings then the entire event is discarded.

input { generator { count => 1 lines => [ '{ "someField": [ "", "" ] }' ] codec => json } }
output { stdout { codec => rubydebug { metadata => false } } }
filter { split{ field => "someField" } }

produces no output. This feels wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions