# Filebeat unable to send data to elastic search

**URL:** <https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 1, 2016, 6:01am UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708 "2016-12-01T06:01:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asparadkar](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@asparadkar](https://discuss.elastic.co/u/asparadkar)\
**Post date:** [December 1, 2016, 6:01am UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708/1 "2016-12-01T06:01:51Z")

</div>

I'm trying to send a file using filebeat. When i start filebeat, it starts the harvester for the file and then gives the following error

 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/9a7119f22074c6865d2161bf8fbfd0f30ad270dc.JPG)

I sent a file yesterday the exact same way and it was sent successfully.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 1, 2016, 9:07am UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708/2 "2016-12-01T09:07:03Z")

</div>

There seems to be an authentication problem when connecting to elasticsearch. Check if you have the credentials in your config file.

---

<div class="post-metadata">

**Author:** ![aparadka](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aparadka](https://discuss.elastic.co/u/aparadka)\
**Post date:** [December 1, 2016, 10:19am UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708/3 "2016-12-01T10:19:27Z")

</div>

yup..installed xpack today..hence the necessity for adding credentials. Thank you  
Can you suggest something about this?

> [@Error sending files from filebeat via logstash](https://discuss.elastic.co/t/error-sending-files-from-filebeat-via-logstash/67717):
>
> I tried sending the file from filebeat via logstash with the logstash output enabled in filebeat.yml files. After starting filebeat, it starts the harvester and gives the following error [image] Can you suggest a soultion for this?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 1, 2016, 12:04pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708/4 "2016-12-01T12:04:01Z")

</div>

Not sure i can follow. Which error are you talking about? The Error above is a 401. Can you please post log files as text and not screenshots?

---

<div class="post-metadata">

**Author:** ![aparadka](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aparadka](https://discuss.elastic.co/u/aparadka)\
**Post date:** [December 1, 2016, 12:53pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708/5 "2016-12-01T12:53:47Z")

</div>

This is the issue i'm facing:

> [@Error publishing events from filebeat](https://discuss.elastic.co/t/error-publishing-events-from-filebeat/67759):
>
> This is the error i'm encountering while sending the file from FB--\>LS--\>ES. This is what the LS console is showing

---

<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:** [December 29, 2016, 12:53pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-send-data-to-elastic-search/67708/6 "2016-12-29T12:53:51Z")

</div>

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