# Kibana visualization for total count of Jenkins jobs currently passing/failing

**URL:** <https://discuss.elastic.co/t/kibana-visualization-for-total-count-of-jenkins-jobs-currently-passing-failing/137507>\
**Category:** Kibana\
**Created:** [June 26, 2018, 8:27pm UTC](https://discuss.elastic.co/t/kibana-visualization-for-total-count-of-jenkins-jobs-currently-passing-failing/137507 "2018-06-26T20:27:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jupp](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jupp](https://discuss.elastic.co/u/jupp)\
**Post date:** [June 27, 2018, 7:43pm UTC](https://discuss.elastic.co/t/kibana-visualization-for-total-count-of-jenkins-jobs-currently-passing-failing/137507/4 "2018-06-27T19:43:59Z")

</div>

I had pretty much the same question two years ago. Unfortunately, I never got an answer. Perhaps there is now a solution that I do not yet know.

> [@Count the result of an aggregation](https://discuss.elastic.co/t/count-the-result-of-an-aggregation/51429):
>
> Given then following Dataset: id @timestamp message 1 2016-05-03T16:30:39.000Z online 2 2016-05-03T16:29:39.000Z online 1 2016-05-03T15:30:39.000Z dead 3 2016-05-03T15:27:39.000Z online 4 2016-05-03T15:28:39.000Z dead 3 2016-05-03T15:25:39.000Z dead 2 2016-05-03T14:29:39.000Z dead 4 2016-05-03T14:28:39.000Z online I want to get the last Event per id and the Count how many ids are "online" or "dead" The result should be: { "key": "online" "do…

Hopefully someone else knows advice, or can say why that is not possible.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-visualization-for-total-count-of-jenkins-jobs-currently-passing-failing/137507)._
