Agent List

Hello,

Is there an API or some other method to export a list of agents enrolled with the fleet server and their status (Healthy, Offline, etc.)? What I need to do is audit the agents currently enrolled with fleet with our list of computers joined to our domain.

Thank you!

Hello Branden

You can try

curl --location --request GET 'https://{kibana_url}:{kibana_port}/api/endpoint/metadata' \
--header 'kbn-xsrf: metadata' \
--header 'Authorization: {Authorization}' \
--header 'Content-Type: application/json' \
--data-raw ''
1 Like

Hello @branden.heifner,

If you are on 8.4.x you can get the list of all agents with the status with this command:

curl --location --request GET 'https://{kibana_url}:{kibana_port}/api/fleet/agents' \
--header 'kbn-xsrf: metadata' \
--header 'Authorization: {Authorization}' \
--header 'Content-Type: application/json' \
--data-raw ''

Or you can go to "Management > Dev Tools" in Kibana and execute the following command:

GET kbn:/api/fleet/agents

They both query the same Fleet endpoint. Let me know if you need further information.

Cristina

1 Like

Thank you Cristina! I was able to get both of them to work.

Thank you Krishna! I was able to get the query to work

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