Remove fields object event

Hello

how do I remove all event objects dynamically

https://www.rubydoc.info/gems/logstash-core-event/2.3.4/LogStash/Event

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.