the value is like: "value":"EJbQ7>ID%l"/2j<?^\Y(eAw{j6T V2lad@hwf.W'@YR5"}
why fail? json can't analysis "value"
how i can do about this?
thanks so much
by andy zhou
But to do that, you need a parsable message. If you can not change the source, you could try to escape the quotes that belong to the value with a gsub filter like (?<=[^{,:])"(?=[^,:}])
But that breaks, if you have something like "} within the field. I can't think of an easy way to save that string. It would really be best, if you didn't feed logstash with an invalid format in the first place.
Edit: (?<!^{|":|",)"(?!,"|:"|}$) would probably work for every except "," or ":". So if these character combinations do not occur in your values, you could escape your desired backslashes first and then the quotes and then use a json filter ... Not a pretty solution.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.