Parsing a non pure Json


(tomer zaks) #1

Hi,

I am trying to parse a string that contains a json. The format of the string is {a:1,b:2 ... }.
Until now I read only strings that are built like a Json with no strings attached to the start or end of it.

Many Thanks,
Tomer


(ruflin) #2

Having non pure json in filebeat will not work. I assume you could do some magic in Logstash to do this, for example with the ruby filter: https://www.elastic.co/guide/en/logstash/current/plugins-filters-ruby.html


(system) #3

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