# Agents periodically disconnecting from Fleets

**URL:** https://discuss.elastic.co/t/agents-periodically-disconnecting-from-fleets/353397
**Category:** Elastic Agent
**Tags:** fleet
**Created:** [February 15, 2024, 4:29pm UTC](https://discuss.elastic.co/t/agents-periodically-disconnecting-from-fleets/353397 "2024-02-15T16:29:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![squatchulator](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/squatchulator/32/127667_2.png) [@squatchulator](https://discuss.elastic.co/u/squatchulator)
#### Post date: [February 15, 2024, 4:29pm UTC](https://discuss.elastic.co/t/agents-periodically-disconnecting-from-fleets/353397/1 "2024-02-15T16:29:49Z")

</div>

Version: 8.9.0

Hi there! Working on a SOC team where we manage agents for lots of local endpoints within our network. I'm pretty new to working with the stack, so I am hoping someone with more experience with agent issues can help out. An issue we've been working around for a while is that periodically (maybe after a day or so of being successfully enrolled/sending logs to our stack), agents will go offline and never come back on unless they are reinstalled, and when they are they just start working fine again until they decide they want to go offline. Went into the endpoints (one enrolled and working, one enrolled but not working) and executed `.\elastic-agent.exe status` under the `C:\Program Files\Elastic\Agent` directory and got the following outputs:

The healthy/working agent outputs:  
┌─ fleet  
│ └─ status: (HEALTHY) Connected  
└─ elastic-agent  
└─ status: (HEALTHY) Running

The enrolled but broken/offline agent outputs:  
`Error: failed to communicate with Elastic Agent daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing open \\\\.\\pipe\\elastic-agent-system: The system cannot find the file specified." For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.9/fleet-troubleshooting.html`

---

<div class="post-metadata">

### Author: ![Rakiba](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@Rakiba](https://discuss.elastic.co/u/Rakiba)
#### Post date: [February 20, 2024, 7:40am UTC](https://discuss.elastic.co/t/agents-periodically-disconnecting-from-fleets/353397/2 "2024-02-20T07:40:47Z")

</div>

Hi @squatchulator ,  
I'm facing problem about this which is relatable with you. My fleet server status showing unhealthy. I couldn't understand what's the problem raised. It's quite difficult to find out the actual issue. here I attached my error log.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d7ccf095bf7c01c33ec4ff3f31a3a1539d4cc281.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 19, 2024, 7:40am UTC](https://discuss.elastic.co/t/agents-periodically-disconnecting-from-fleets/353397/3 "2024-03-19T07:40:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
