elastic / elastic/elastic-agent

Fleet-Server Elastic Agent can be unhealthy for a few minutes after enrollment.

Open
#13,353 3 comments 0 reactions 0 assignees View on GitHub
bug Team:Elastic-Agent-Control-Plane
Dominant language
Go
Stars
276
Forks
266
Avg merge
1d 23h
Merged PRs (30d)
312

Description

When starting the Elastic Agent running Fleet Server and Elasticsearch simultaneously, like [`elastic-package`](https://github.com/elastic/elastic-package) does, the Elastic Agent running Fleet Server can be unhealthy for a few minutes right after the whole stack goes up.
The `elastic-agent status` command returns healthy while Fleet UI still shows unhealth.

Video showing the issue:

[fleet-server.mp4](https://github.com/user-attachments/assets/3cbf6855-9b28-4d9f-8990-dc0b7ad0b04e)

Agent JSON from when the Elastic Agent is showing unhealthy: [agent-JSON.json](https://github.com/user-attachments/files/26314749/agent-JSON.json)

Diagnostics: [elastic-agent-diagnostics-2026-03-27T13-51-25Z-00.zip](https://github.com/user-attachments/files/26314748/elastic-agent-diagnostics-2026-03-27T13-51-25Z-00.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the startup sequence used by elastic-package with Fleet Server and Elasticsearch running simultaneously. Compare the `elastic-agent status` result with the Fleet UI state, then inspect the attached agent-JSON.json and diagnostics archive for the health transition. Done means the Fleet UI reports the expected health promptly after enrollment, consistently with the command output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.