{
"key1" => "val1",
" key2" => "val2",
" key3" => "val3"
}
Here i want to remove spaces in all fields. I tried with trim_key => "\s" in kv filter. still no luck.
Please help to remove spaces in all logstash fields if there is any other approach.
i am getting wrong output with this. In my message i have few fields which include " ". I need another approach. Found "strip " in mutate. But how to iterate it to apply this to all my fields?
Ah, damn it. I forgot how field_split works. You can use a ruby filter to strip all keys and/or values without having to enumerate them in the configuration.
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.