# Error Code 401 retrying connection to Elastic servers

**URL:** <https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095>\
**Category:** Logstash\
**Tags:** elastic-stack-security\
**Created:** [May 11, 2020, 6:12pm UTC](https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095 "2020-05-11T18:12:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edster](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@edster](https://discuss.elastic.co/u/edster)\
**Post date:** [May 11, 2020, 6:12pm UTC](https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095/1 "2020-05-11T18:12:08Z")

</div>

Hello,  
We seem to be having random moments when logstash runs into an issue where it can't connect to the elastic servers and continuously tries to connect and even though the servers are up it continously tries to connect and wont break from this error message.

---

<div class="post-metadata">

**Author:** ![Charles.w](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles.w/32/15486_2.png) [@Charles.w](https://discuss.elastic.co/u/Charles.w)\
**Post date:** [May 13, 2020, 2:29pm UTC](https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095/2 "2020-05-13T14:29:16Z")

</div>

Hi,

What is your setup ? Is everything local ? Do you have a valid license (some security features might have been disabled if your license is not valid anymore) ?

Best regards,

Charles.w

---

<div class="post-metadata">

**Author:** ![edster](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@edster](https://discuss.elastic.co/u/edster)\
**Post date:** [May 14, 2020, 11:20am UTC](https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095/3 "2020-05-14T11:20:34Z")

</div>

I dont think it would be the license because OSS and even so it's not like a full stop of ingestion. It seems to be random. It isn't always it's on random occasions. I guess the main thing is not knowing what could a cause for it everytime.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 14, 2020, 12:18pm UTC](https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095/4 "2020-05-14T12:18:47Z")

</div>

I moved your question to #logstash as it seems a better fit to me.  
It would probably help readers if you share a bit more information like Logstash logs...

---

<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:** [June 11, 2020, 12:18pm UTC](https://discuss.elastic.co/t/error-code-401-retrying-connection-to-elastic-servers/232095/5 "2020-06-11T12:18:48Z")

</div>

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