Hello, could somebody help me figuring this out?
I have the log file (containing server json responses) in the following format
{"success":true,"data":{"field1":"value1", "field2":"value2"}}
{"success":true,"data":{"field1":"value11", "field2":"value22"}}
{"success":false,"data":{"Exception blah blah"}}
{"success":true,"data":{"field1":"value111", "field2":"value222"}}
and I would like to create a documents in elasticsearch of the type myevent
with fields: field1 and field2 only if success was true
I had multiple failed attempts with codec => json
json filters, grok patterns, but no luck.
Thank you,
Milan