You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enroll/install an Elastic Agent against the policy
Wait for the agent to check-in and become "Healthy"
Unenroll the agent
This can be done manually via Kibana UI/API
This can happen automatically if the Agent policy has an "Unenroll" time set
Observe the following:
Elastic Agent logs "API key has been invalidated"
Elastic Agent when running elastic-agent status reports as healthy
If you restart the agent/host after, the agent will then enter an unhealthy state
I would expect that once the agent starts to fail check-ins or sees it's API key has been invalidate, it should report an unhealthy state.
I've randomly run into this issue a few times (mainly from intermittent network connectivity issues that trigger the agent policy unenroll), but it becomes an issue when trying to detect when an agent is in an "unhealthy" state for things like; elastic/cloud-on-k8s#5376
The text was updated successfully, but these errors were encountered:
BenB196
changed the title
Elastic Agent Stays in "Healthy" State when its been unenrolled
Elastic Agent Stays in "Healthy" State when it has been unenrolled/API Key invalidated
Feb 4, 2025
For confirmed bugs, please report:
elastic-agent status
reports as healthyI would expect that once the agent starts to fail check-ins or sees it's API key has been invalidate, it should report an unhealthy state.
I've randomly run into this issue a few times (mainly from intermittent network connectivity issues that trigger the agent policy unenroll), but it becomes an issue when trying to detect when an agent is in an "unhealthy" state for things like; elastic/cloud-on-k8s#5376
The text was updated successfully, but these errors were encountered: