elastic / elastic/elastic-agent
[Feature Request] Enable a 'repair agent' button in fleet
- Dominant language
- Go
- Stars
- 275
- Forks
- 264
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 303
Description
**Describe the enhancement:**
Within fleet there would be an additional drop down option to 'repair agent' that would task remote agents to attempt to repair unhealthy agents. The user would then get a confirmation prompt that would let them know that this could remove unsent logs from the agent. When 'repair agent' is used the agent would run multiple actions to attempt to repair or reset the agent to a working state. These actions could include things like deleting all downloads, any cached files that may be corrupted, etc. It would also reset the agent state within fleet.
**Describe a specific use case for the enhancement or feature:**
- An agent is in an unhealthy state following an attempted upgrade where the system powered off during the upgrade leaving partial downloads on the system. Using the 'repair agent' button would clear all downloads and restore the agent to a healthy state.
- An agent is upgraded but the final 'ack' for the upgrade doesn't make it to fleet. This leaves the agent in a healthy state but the status with fleet isn't correctly synchronized. The repair agent button will re-synchronize the agent and fleet so the current state is accurate.
Contributor guide
Assessment
This issue has not been assessed yet.