hello, does Fleet auto remove hosts after a certai...
# fleet
a
hello, does Fleet auto remove hosts after a certain period of no checkins?
f
it is supposed to but in practice im not sure it actually works
Screenshot 2024-08-05 at 1.23.08 PM.png
in our instance at least, hosts can be Online, Offline and after a period of 30 days transitions finally to "Missing" although the UI status is still Offline
a few years ago i had written an api script to grab a list of all dead/missing hosts and then delete them but now you can select all "Missing" and manually remove .
a
aha! thank you
our expiry does seem to be working going off of the last fetched dates in our missing hosts
f
nice, my instance is a few behind latest it is possible ours has a bug or something. but either way, you can use the host status page to manually inspect and purge if need be.
k
There can also be circumstances where a host has a last fetched time that's a lot older than the last seen time in Fleet, the most common factor there is VMs with duplicate hardware uuids. Those hosts won't expire because they're continuously enrolling in Fleet, but another instance takes over the enrollment before the host details can be fetched.
a
makes sense, thanks for that detail
k
Those hosts will pretty much always have an "online" status in Fleet, so they're fairly easy to spot.