Logstash, remove all fields that contain a specific value

how to remove all fields that contain a specific value or reg expression

solution by me

ruby
{
code =>
'event.to_hash.keys.each { |k| if k.start_with?("value") then event.remove(k) end }'
}