# Fleet server went offline

**URL:** https://discuss.elastic.co/t/fleet-server-went-offline/380343
**Category:** Elastic Agent
**Tags:** fleet
**Created:** [July 22, 2025, 12:06pm UTC](https://discuss.elastic.co/t/fleet-server-went-offline/380343 "2025-07-22T12:06:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sreya\_14](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sreya\_14](https://discuss.elastic.co/u/sreya_14)
#### Post date: [July 22, 2025, 12:06pm UTC](https://discuss.elastic.co/t/fleet-server-went-offline/380343/1 "2025-07-22T12:06:43Z")

</div>

Fleet agent went offline after adding elasticsearch ,kibana integration to the fleet server policy.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bc4ec592094a68d401aee54f99efa170fefa9a59.png)

But while trying to add server after uninstalling the agent but it is not uninstalling and giving error

````auto
2025-07-19T19:47:39.590Z DEBUG [uninstall] Creating new request to request URL https://localhost:8221/api/fleet/agents/05258dca-4d90-4b8f-bac1-c8b5aa221a28/audit/unenroll?
2025-07-19T19:47:39.593Z DEBUG [uninstall] requester 0/1 to host https://localhost:8221/ errored {"error": "Post \"https://localhost:8221/api/fleet/agents/05258dca-4d90-4b8f-bac1-c8b5aa221a28/audit/unenroll?\": dial tcp 127.0.0.1:8221: connect: ```
connection refused"}
2025-07-19T19:47:49.853Z DEBUG [uninstall.state_migration] not attempting to migrate from action store: state store already exists
Error: error uninstalling agent: error uninstalling components: error applying dynamic inputs: error unpacking subarray in config for skip key inputs: expected ',' when parsing '${host.os_version} != "12 (bookworm)" and (${host.os_platform} != "amzn" or ${host.os_version} != "2023") and (${host.os_platform} != "sles" and startsWith(${host.os_version}, "15") == false)' accessing 'inputs.0'
For help, please see our troubleshooting guide at [https://www.elastic.co/guide/en/fleet/8.18/fleet-troubleshooting.html(external, opens in a new tab or window)](https://www.elastic.co/guide/en/fleet/8.18/fleet-troubleshooting.html)
[root@vfralapelknpd01 elastic-agent-8.18.1-linux-x86_64]#

````

Please suggest

---

<div class="post-metadata">

### Author: ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)
#### Post date: [September 2, 2025, 2:06pm UTC](https://discuss.elastic.co/t/fleet-server-went-offline/380343/2 "2025-09-02T14:06:52Z")

</div>

Hi, do you see any errors in fleet-server logs when it went unhealthy?

This should help with the uninstall error: [Elastic Support Hub](https://support.elastic.co/knowledge/426c2401)
