How to write elastic search queries to get job variables and values for failed incidents?

I am trying to get a value of particular job variables for all failed incidents in a workflow using elastic search.

Hey!
Do you think this elastic template right here can help you?

Best,
Thomas

Thanks, Thomas, let me try this out, and will get back with the findings.