Query on getting the complete event data in output plugin

Hi,

In the logstash output plugin, i would like to get the complete event data. Could you please advice on how we can achieve that,. Once the event is received, I would like to wrap it around another json object. This will be done in http output plugin to support kafka-rest format payload.
want to achieve something like this.
{
"records": [ {
"value" : {event data}
]
}
Thanks,
Rajesh

If you want to send it as JSON then this might help, if you want a string then change that to use event.to_hash.to_s

Thanks you. The provided solution works

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