# Tracking of outage duration from ups and downs

**URL:** <https://discuss.elastic.co/t/tracking-of-outage-duration-from-ups-and-downs/75209>\
**Category:** Logstash\
**Created:** [February 15, 2017, 2:12pm UTC](https://discuss.elastic.co/t/tracking-of-outage-duration-from-ups-and-downs/75209 "2017-02-15T14:12:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarp/32/51884_2.png) [@tarp](https://discuss.elastic.co/u/tarp)\
**Post date:** [February 15, 2017, 2:12pm UTC](https://discuss.elastic.co/t/tracking-of-outage-duration-from-ups-and-downs/75209/1 "2017-02-15T14:12:05Z")

</div>

Hi,  
Recently I added our sitescope alert logs to our Elasticsearch cluster. This is very helpful that shows us when we get down alerts. What I'm not getting is any kind of duration. How long was something down?  
The sitescope tool just records a single down event until the next successful occurs. Is there some way that Logstash can look this up and calculate the uptime or downtime duration? Or is there a way that I could just show this in Kibana without augmenting the data?

Thanks,  
Tim

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 15, 2017, 10:12pm UTC](https://discuss.elastic.co/t/tracking-of-outage-duration-from-ups-and-downs/75209/2 "2017-02-15T22:12:27Z")

</div>

You may be able to get a sum agg or a scripted field to do something in KB.  
It'll depend on what the sitescope logs actually have in them, does it store an ongoing "down" type value, or just a start and stop event.

---

<div class="post-metadata">

**Author:** ![tarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarp/32/51884_2.png) [@tarp](https://discuss.elastic.co/u/tarp)\
**Post date:** [February 16, 2017, 1:50pm UTC](https://discuss.elastic.co/t/tracking-of-outage-duration-from-ups-and-downs/75209/3 "2017-02-16T13:50:47Z")

</div>

Thanks for the reply.

I just get single alerts on state changes. So I would need to get duration between state changes.

---

<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:** [March 16, 2017, 1:50pm UTC](https://discuss.elastic.co/t/tracking-of-outage-duration-from-ups-and-downs/75209/4 "2017-03-16T13:50:48Z")

</div>

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