I have a string field called log_type
,
which may contains string like "-- INFO
".
I'd like to remove hyphens (i. e. replace hyphen with empty string),
how to do it?
I have tried mutate gsub, like this:
mutate {
gsub => ["log_type", "--", ""]
......
but the result will be "-0- INFO
". Why?