Hi guys,
Does anyone know how to replace multiple whitespace using gsub?
Below doesn't work - but something like this?
gsub => [
"syslog_event", "\s+", " ",
]
Thanks
Hi guys,
Does anyone know how to replace multiple whitespace using gsub?
Below doesn't work - but something like this?
gsub => [
"syslog_event", "\s+", " ",
]
Thanks
It works for me. These
mutate { add_field => { "someField" => "a b" } }
mutate { gsub => [ "someField", "\s+", " " ] }
result in
"someField" => "a b",
I had that comma at the end which was causing it to fail (obviously) - Thanks though
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.