Get event data as a Ruby plain object

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?

event.to_hash
1 Like

It's perfect! thanks you.

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