Parsing java map to json in logstash

Hi All, I am storing a java map to my database which is in this form
actual data is larger but I want to extract individual fields(like id and name) from above log. I tried using json filter but it is not working is there any way to do it?

A kv filter will be able to parse the particular example you gave. You may want to use a grok filter to extract the key/value pairs inbetween the curly braces (a mutate filter's gsub option would also work).

Thanks a lot for replying so quick, works like a charm.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.