# How do query in Discover for list hosts if we have fleet agent policy id

**URL:** https://discuss.elastic.co/t/how-do-query-in-discover-for-list-hosts-if-we-have-fleet-agent-policy-id/357087
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [April 9, 2024, 3:34pm UTC](https://discuss.elastic.co/t/how-do-query-in-discover-for-list-hosts-if-we-have-fleet-agent-policy-id/357087 "2024-04-09T15:34:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Love\_all1](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@Love\_all1](https://discuss.elastic.co/u/Love_all1)
#### Post date: [April 9, 2024, 3:34pm UTC](https://discuss.elastic.co/t/how-do-query-in-discover-for-list-hosts-if-we-have-fleet-agent-policy-id/357087/1 "2024-04-09T15:34:33Z")

</div>

I have list of hosts around 1040 i need to query and that list exported to excel.
