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 }'
}
1 Like

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