# Determine which services are no longer sending a heartbeat message

**URL:** <https://discuss.elastic.co/t/determine-which-services-are-no-longer-sending-a-heartbeat-message/236004>\
**Category:** Kibana\
**Created:** [June 5, 2020, 8:08pm UTC](https://discuss.elastic.co/t/determine-which-services-are-no-longer-sending-a-heartbeat-message/236004 "2020-06-05T20:08:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayson](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jayson](https://discuss.elastic.co/u/jayson)\
**Post date:** [June 5, 2020, 8:08pm UTC](https://discuss.elastic.co/t/determine-which-services-are-no-longer-sending-a-heartbeat-message/236004/1 "2020-06-05T20:08:03Z")

</div>

Hi, I'm trying to create a data table visualization that will return records for services that are no longer sending a heartbeat. For example Service 1 was sending a heartbeat then stopped 5 minutes ago. There's not a top-level field that I can key off to use a NOT EXISTS clause. So I was considering querying for a documents that match `routing_key: service.heartbeat`then returning all services that have a timestamp older than 5 minutes but not records that have a timestamp less than 2 minutes old. I've tried leveraging MAX bucket and a time range but it doesn't want to work for me. Any suggestions on how to approach this would be much appreciated!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 11, 2020, 3:32pm UTC](https://discuss.elastic.co/t/determine-which-services-are-no-longer-sending-a-heartbeat-message/236004/2 "2020-06-11T15:32:49Z")

</div>

Have you tried using the [uptime application](https://www.elastic.co/guide/en/kibana/current/xpack-uptime.html) to view service status? Uptime will show you when services have not received heartbeat messages.

---

<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:** [July 9, 2020, 3:33pm UTC](https://discuss.elastic.co/t/determine-which-services-are-no-longer-sending-a-heartbeat-message/236004/3 "2020-07-09T15:33:08Z")

</div>

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