Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

split drops empty fields

Open
#47 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
backend

Research direction

Start in lib/logstash/filters/split.rb at the linked filtering logic and reproduce the case with an array containing empty strings. Check the existing tests for split behavior, then make the expected handling of empty array elements explicit and verify the reproducer produces output.

Written by the indexing model from the issue text.

Description

bug

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.

Dominant language
Ruby
Stars
6
Forks
29
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from logstash-plugins/logstash-filter-split

All issues in logstash-plugins/logstash-filter-split

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.