Hi all , i have sending output to Oracle DB , fields containing some XMLs , logstash adding "\" to all fields as escape character that increasing fields size drasticaly how to remove them from the fields ?
Tried :
mutate {
gsub => [
"parameterIN","\\","",
"parameterOut","\\","",
"additionalField1","\\","",
"additionalField2","\\","",
"additionalField3","\\",""
]
}
Getting Error
if [type] == "xxxx_processes" {\n\t\t\tmutate {\n\t\t\t\tgsub => [\n "parameterIN","\\","", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:42:in compile_imperative'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:50:in
compile_graph'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:12:in block in compile_sources'", "org/jruby/RubyArray.java:2486:in
map'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:11:in compile_sources'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:49:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:167:in initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:40:in
execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:305:in `block in converge_state'"]}