How to use Ctx Variable to access the source fields in Kibana

(shashank) #1

Ok so what I want is alerting in Kibana so I was designing the message in Kibana that will be received in NIFI, now I want some source field data (_source) present inside json but how to access it using ctx (Context) variable.

Below is the snapshot of Alerting Message:

I want to access the "emr.jobs.args" variable in the message.
I tried the following solution but nothing went good for me:

  • {{emr.jobs.args}}
  • {{ ctx._source.emr.jobs.args}}

If there is any another way I will be happy to know that.
Thanks in Advance.