If I just do:
https://mykibana/api/fleet/agents
I get hundreds of agents (since I am running hundreds). A bit too big to post here.
One of the offline agents looks like this:
{
"list": [
{
"id": "xxx",
"access_api_key_id": "xxx",
"action_seq_no": [
-1
],
"active": true,
"agent": {
"id": "xxx",
"version": "8.4.2"
},
"enrolled_at": "2023-08-16T05:52:59Z",
"local_metadata": {
"elastic": {
"agent": {
"build.original": "8.4.2 (build: d3eb3e8a02d96bf48d11145fb089e118f75bd202 at 2022-09-14 22:33:40 +0000 UTC)",
"id": "xxx,
"log_level": "info",
"snapshot": false,
"upgradeable": false,
"version": "8.4.2"
}
},
"host": {
"architecture": "x86_64",
"hostname": "xxx",
"id": "xxx",
"ip": [
"xxx"
],
"mac": [
"xxx"
],
"name": "xxx"
},
"os": {
"family": "debian",
"full": "Ubuntu focal(20.04.5 LTS (Focal Fossa))",
"kernel": "5.4.209-116.367.amzn2.x86_64",
"name": "Ubuntu",
"platform": "ubuntu",
"version": "20.04.5 LTS (Focal Fossa)"
}
},
"policy_id": "8fab94c0-69e4-11ed-be84-13a1190e0b89",
"type": "PERMANENT",
"default_api_key": "xxx",
"default_api_key_id": "xxx",
"policy_output_permissions_hash": "dc9401abb0dfda2c534789e7b1758981eb78621b4ea9c548b40cdb3c42d351a0",
"policy_revision_idx": 12,
"policy_coordinator_idx": 1,
"updated_at": "2023-08-16T06:19:14Z",
"last_checkin_status": "degraded",
"last_checkin": "2023-08-16T06:19:06Z",
"policy_revision": 12,
"status": "offline",
"packages": [],
"sort": [
1692165179000,
"xxx"
]
}
]
}
If I do:
https://mykibana/api/fleet/agents?kuery=status:offline
I get:
{"list":[],"items":[],"total":0,"totalInactive":0,"page":1,"perPage":20}