Gsub specific characters but not all of them in value

Thank you Magnus, that is perfect!

I dont suppose you know a way of converting all fields starting with a specific string to float do you?

Something like:

mutate { convert => { "metric-*(.+)" => "float" } }