How to remove spacial character \ added by logstash?


(Amruth) #1

Hi,

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\"


(Magnus Bäck) #2

You don't actually have backslashes in the string.


(Amruth) #3

Just noticed that, thanks Magnus :slight_smile:


(system) #4

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