# Beats cant send data suddenly to ES with errors pop up

**URL:** <https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668>\
**Category:** Beats\
**Created:** [July 16, 2016, 2:30pm UTC](https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668 "2016-07-16T14:30:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [July 16, 2016, 2:30pm UTC](https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668/1 "2016-07-16T14:30:25Z")

</div>

I am using ES 5.0, Kibana 5.0 alpha4 and various beats to send data to ES. Everything runs fine and smooth at first. However, after a day, the beats suddenly cannot send the beats to the ES. I have been using different bearts, including winlogbeat, metribeats, etc. All of them suddenly stop working.

Error is as shown

```
2016/07/16 15:22:15.259659 single.go:130: INFO Connecting error publishing events (retrying): 401 Unauthorized
2016/07/16 15:22:15.259695 single.go:145: INFO send fail

```

What would be the issues?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 17, 2016, 6:57am UTC](https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668/2 "2016-07-17T06:57:15Z")

</div>

Can you try running it with debug to catch a bit more info?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [July 18, 2016, 1:52pm UTC](https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668/3 "2016-07-18T13:52:24Z")

</div>

Error says `401 Unauthorized`. you using shield or some other http based proxy requiring you to authenticate? Did someone add some proxy? Have your credentials being invalidated or changed?

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [July 19, 2016, 3:57am UTC](https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668/4 "2016-07-19T03:57:53Z")

</div>

Hi all,

Thanks for the guidance. I have set back the credentials in the yml file and it works now. Just wonder why it did not prompt me error at first when I start the machine. It stops me and prompt the error after the beats had been working for several hours.

---

<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:** [August 6, 2016, 2:30pm UTC](https://discuss.elastic.co/t/beats-cant-send-data-suddenly-to-es-with-errors-pop-up/55668/5 "2016-08-06T14:30:44Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
