Skip to content

Agent fails to migrate and gets unhealthy when migrated with Replace Token agent options enabled. #9763

@amolnater-qasource

Description

@amolnater-qasource

Kibana version:

VERSION: 9.2.0-SNAPSHOT
BUILD: 90020
COMMIT: 567e6e28df4a7adb8b6a883f4e255c058ab346f2

Preconditions:

  1. 9.2.0-SNAPSHOT Kibana cloud environment should be available.
  2. An agent should be installed with Agent policy.

Steps to reproduce:

  1. Navigate to Agents tab
  2. Click Actions>Migrate Agent and add new Fleet Server URL and token for the agent policy.
  3. Under Advanced options enable Replace Token toggle.
  4. Observe Agent fails to migrate and gets unhealthy.

Expected behavior:
Agent should migrate to new cluster when migrated with Replace Token agent options enabled.

Agent Logs:

elastic-agent-diagnostics-2025-09-05T09-19-44Z-00.zip

Agent JSON:

ip-172-31-88-136-agent-details.json.zip

Screen Capture:

Screen.Recording.2025-09-05.at.2.49.02.PM.mov

Related Feature:
elastic/kibana#217619

Metadata

Metadata

Assignees

Labels

QA:ValidatedValidated by the QA TeamTeam:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teambugSomething isn't workingimpact:highShort-term priority; add to current release, or definitely next.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions