# How do i get the analytics for this?

**URL:** <https://discuss.elastic.co/t/how-do-i-get-the-analytics-for-this/85242>\
**Category:** Kibana\
**Created:** [May 10, 2017, 12:22pm UTC](https://discuss.elastic.co/t/how-do-i-get-the-analytics-for-this/85242 "2017-05-10T12:22:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran\_kumar\_sukumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kiran_kumar_sukumar/32/16319_2.png) [@kiran\_kumar\_sukumar](https://discuss.elastic.co/u/kiran_kumar_sukumar)\
**Post date:** [May 10, 2017, 12:22pm UTC](https://discuss.elastic.co/t/how-do-i-get-the-analytics-for-this/85242/1 "2017-05-10T12:22:13Z")

</div>

My application logs the status of each step while execution. Can kibana tell me the how many executions have passed or failed based on the analysis of step status. For example if one of the steps have failed then the execution is failed.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 10, 2017, 2:41pm UTC](https://discuss.elastic.co/t/how-do-i-get-the-analytics-for-this/85242/2 "2017-05-10T14:41:48Z")

</div>

@kiran_kumar_sukumar

How is your mapping of your documents?

Are your documents something like?

```auto
{
    executionId: string,
    stepNr: int
    status: [true|false]
} 

```

?

If so, you can do a term-aggregation on executionId, and filter on status=false. This should list you all failed jobs.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 7, 2017, 2:53pm UTC](https://discuss.elastic.co/t/how-do-i-get-the-analytics-for-this/85242/3 "2017-06-07T14:53:36Z")

</div>

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