# Filebeat : harvester setup failed: unexpected file opening error

**URL:** <https://discuss.elastic.co/t/filebeat-harvester-setup-failed-unexpected-file-opening-error/180783>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 13, 2019, 10:09am UTC](https://discuss.elastic.co/t/filebeat-harvester-setup-failed-unexpected-file-opening-error/180783 "2019-05-13T10:09:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayurbiw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayurbiw/32/45858_2.png) [@Mayurbiw](https://discuss.elastic.co/u/Mayurbiw)\
**Post date:** [May 13, 2019, 10:09am UTC](https://discuss.elastic.co/t/filebeat-harvester-setup-failed-unexpected-file-opening-error/180783/1 "2019-05-13T10:09:10Z")

</div>

I am sending a data from file beat to Logstash. File beat is throwing an error -  
harvester setup failed: unexcepted file opening error? I am reading files from a directory like this example -

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - /var/log/\*.log

Can anyone suggest a solution?

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [May 13, 2019, 10:35am UTC](https://discuss.elastic.co/t/filebeat-harvester-setup-failed-unexpected-file-opening-error/180783/2 "2019-05-13T10:35:50Z")

</div>

@Mayurbiw, Can you please provide your `filebeat.yml` configuration? That will be more helpful.

Please provide configuration in formatted way.

Thanks.

---

<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 10, 2019, 10:35am UTC](https://discuss.elastic.co/t/filebeat-harvester-setup-failed-unexpected-file-opening-error/180783/3 "2019-06-10T10:35:51Z")

</div>

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