How to remove spacial character \ added by logstash?


I have a field which contains several double quotes. Problem here is, Logstash is adding \ where ever there is double quote. How to remove that special character? I tried mutate with gsub but it's not working. Please see the sample log below,

"query" => "SELECT 1 AS \"Number_of_Records\", \"agg\".\"category\" AS \"category\", \"agg\".\"clientid\"

You don't actually have backslashes in the string.

Just noticed that, thanks Magnus :slight_smile:

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