Remove symbol from logstash

hi,

i have a string like this - ['127.0.53.53'] and ['104.21.57.219', '172.67.192.115']
i would like to remove the symbol [' xx ']

I have tried something like this, but it seems fail. can anybody help me?

mutate { gsub => [ "someField", "['", "" ] }

thanks.

You could try

mutate { gsub => [ "message", "[\[\]]", "" ] }
2 Likes

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