Json codec builds nested fields when field name contains square brackets
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the issue with the JSON example in the report and trace the codec's handling of field names containing square brackets. Confirm how the input is converted into nested fields, then ensure the literal field name is preserved and verify the same example no longer produces nested keys.
Written by the indexing model from the issue text.
Description
Hi,
Facing problem (upgrading from 1.4.2 to 2.0 that occurs when field have brackets inside (valid JSON)
example:
{
"dynamo_entry_tuple_in_list[0]_list[0]": "valid-value"
}
is converted to:
{
"dynamo_entry_tuple_in_list" : {"0_.list":{"1_":null,"0_":null}}
}
because my fields contains dots (removed in "de_dot") I'm unable to rename them in filter - it becomes nested.
- Dominant language
- Ruby
- Stars
- 26
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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-codec-json
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
CompressionOpenenhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
logstash-plugins/logstash-codec-json#42 · 4 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
logstash-plugins/logstash-codec-json#31 · 1 comment ·
-
discuss enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
logstash-plugins/logstash-codec-json#28 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
logstash-plugins/logstash-codec-json#15 · 9 comments · 8 reactions ·
All issues in logstash-plugins/logstash-codec-json
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
betagouv/conseillers-entreprises#4770 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
seek4science/seek#2762 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Freika/dawarich#3910 · 3 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
rubyevents/rubyevents#2277 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days