# Create fleet agent status table for a particular space

**URL:** <https://discuss.elastic.co/t/create-fleet-agent-status-table-for-a-particular-space/328620>\
**Category:** Elastic Agent\
**Created:** [March 27, 2023, 1:37pm UTC](https://discuss.elastic.co/t/create-fleet-agent-status-table-for-a-particular-space/328620 "2023-03-27T13:37:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niveditakathal](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@niveditakathal](https://discuss.elastic.co/u/niveditakathal)\
**Post date:** [March 27, 2023, 1:37pm UTC](https://discuss.elastic.co/t/create-fleet-agent-status-table-for-a-particular-space/328620/1 "2023-03-27T13:37:51Z")

</div>

Hi Experts,

I want to create a custom dashboard for a space in my Kibana to show all agents registered to a particular fleet agent policy.

In order to achieve this I used

- Index pattern .fleet-agents\* with appropriate permission and timestamp as last\_checkin.
- Filter the results for policy\_id created for required space.
- Last by not the least use last\_checkin\_status  
Online for Healthy  
degraded for Unhealthy  
error for offline

However, I don't see agents with last\_checkin\_status = offline in my dashboard. Also if I create a search page in discover, it don't show offline agent.

Can someone please assist me on how I can

- Show total count agents registered under policies {no matter what is the status of the agent}
- Count of healthy , unhealthy and offline

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bc83806b5b6bed38efca9794671dd991376ef8ac.png)

Thanks, in advance!

Regards,  
Nivedita

---

<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:** [April 24, 2023, 1:38pm UTC](https://discuss.elastic.co/t/create-fleet-agent-status-table-for-a-particular-space/328620/2 "2023-04-24T13:38:18Z")

</div>

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