# Agent Status in ELK

**URL:** <https://discuss.elastic.co/t/agent-status-in-elk/320451>\
**Category:** APM\
**Tags:** java, server\
**Created:** [December 5, 2022, 9:05am UTC](https://discuss.elastic.co/t/agent-status-in-elk/320451 "2022-12-05T09:05:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Namita\_Jaokar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namita_jaokar/32/104106_2.png) [@Namita\_Jaokar](https://discuss.elastic.co/u/Namita_Jaokar)\
**Post date:** [December 5, 2022, 9:05am UTC](https://discuss.elastic.co/t/agent-status-in-elk/320451/1 "2022-12-05T09:05:19Z")

</div>

Hi Team,

I am using ELK APM with Java agent. In Elasticsearch , We are able to view the current running services that have been configured in kibana dashboard. I wanted to understand how does ELK get the status of these services.  
I am currently going through the java agent source code for the same, But haven't succeeded in my findings.  
As per my requirement, We need to showcase similar functionality in my application wherein I can view all the services in ELK that are running with additional feature of showing it down/unavailable when not running.

Thanks & Regards,  
Namita Jaokar

---

<div class="post-metadata">

**Author:** ![Venkata\_Raja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata_raja/32/114264_2.png) [@Venkata\_Raja](https://discuss.elastic.co/u/Venkata_Raja)\
**Post date:** [December 6, 2022, 6:11am UTC](https://discuss.elastic.co/t/agent-status-in-elk/320451/2 "2022-12-06T06:11:26Z")

</div>

> As per my requirement, We need to showcase similar functionality in my application wherein I can view all the services in ELK that are running with additional feature of showing it down/unavailable when not running.

To showcase your service availability , you can use [heartbeat](https://www.elastic.co/guide/en/beats/heartbeat/current/heartbeat-installation-configuration.html) which can show you the running status of services,certs etc and can alert you as well if service is down.

---

<div class="post-metadata">

**Author:** ![Namita\_Jaokar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namita_jaokar/32/104106_2.png) [@Namita\_Jaokar](https://discuss.elastic.co/u/Namita_Jaokar)\
**Post date:** [December 15, 2022, 5:36am UTC](https://discuss.elastic.co/t/agent-status-in-elk/320451/3 "2022-12-15T05:36:35Z")

</div>

Thanks @Venkata_Raja for the solution. Does ELK provide any API or is there any Elastic query that can help me get all the agent status that would be configured with ELK.

Also, Can Heartbeat be used to monitor jar as well.? Basically I want to monitor the Elastic APM jar running on a different system. Can this be monitored in any way?

Best Regards,  
Namita

---

<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:** [January 5, 2023, 1:37am UTC](https://discuss.elastic.co/t/agent-status-in-elk/320451/4 "2023-01-05T01:37:16Z")

</div>

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