How to get count of all processInstance of a process that are failed

I have to count the number of processinstances of a process that are failed, i want this data from elastic search.

What is the structure of documents that are stored in Elastic search (any documentation on structure of data stored by zeebe on elastic search.)

There are some elastic index templates out there. Take a look here:

Hopefully this was helpful for you! :slight_smile: