Get event data as a Ruby plain object


(Thomas Decaux) #1

I am writing a plugin to validate the event data with JSON schema, with logstash 6.x, with https://github.com/ruby-json-schema/json-schema/.

How can I get the event object as a plain ruby object?


(Magnus B├Ąck) #2
event.to_hash

(Thomas Decaux) #3

It's perfect! thanks you.


(system) #4

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