logstash-codec-json icon indicating copy to clipboard operation
logstash-codec-json copied to clipboard

Json codec builds nested fields when field name contains square brackets

Open ofirnn opened this issue 10 years ago • 1 comments

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.

ofirnn avatar Dec 14 '15 14:12 ofirnn

because my fields contains dots (removed in "de_dot") I'm unable to rename them in filter - it becomes nested.

Whenever possible, de_dot should be the last filter of a pipeline to avoid such issues.

untergeek avatar Dec 15 '15 08:12 untergeek