Remove hashtags "#" using gsub

Hi, I have some trouble using gsub on logstash because I'm still new on logstash configuration. Just want to asking. Example I have data like "#ynwa". How to remove "#" and leave the word "ynwa" only using gsub ?

mutate {
gsub => [ "query", "#", "" ]
}

Did I do the right command for remove the hashtags "#" using gsub on the conf file?

If the [query] field contains a # then I would expect that to remove it in logstash.

Yes the [query] field contains a #. So I did the right command, right?

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