Remove fields object event


how do I remove all event objects dynamically

I need this because my message comes through the metada, fields that are in it is also in the event object.

basically I need to iterate over them and removing all.

I'm a beginner at logstash, sorry for the Google translator
help: D

I already tried something like

code => "event.to_hash.each {| k, v |
event.remove (k)} "

but without success

Resolved :smiley:

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