split drops empty fields
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from logstash-plugins/logstash-filter-split
-
enhancement status:needs-triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
logstash-plugins/logstash-filter-split#42 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
logstash-plugins/logstash-filter-split#38 · 1 reaction ·
-
Split Filter is not multi thread, how to fix this?May be free again @colinsurprenant claimed this 2784 days ago, and no pull request is open. Open
logstash-plugins/logstash-filter-split#37 · 1 comment · 1 assignee ·
All issues in logstash-plugins/logstash-filter-split
Similar issues
-
バグ
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
IBM/ai-security-baseline#25 ·
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day