Looping through a logstash event in painless

I'm attempting to loop through an event in the output elasticsearch plugin. I would like to be able to loop through a nested hash and add that information to the document. Right now I'm just grasping at straws...

  1. Looping through an event. Am I close?

for (k in params.event.events.keySet()){ }

  1. Adding a field to an event. Something like this?

params.event..add("value")

Any help would be appreciated.

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