# Filebeat not taking files from directory and sending to Logstash

**URL:** <https://discuss.elastic.co/t/filebeat-not-taking-files-from-directory-and-sending-to-logstash/56742>\
**Category:** Beats\
**Created:** [July 29, 2016, 3:18pm UTC](https://discuss.elastic.co/t/filebeat-not-taking-files-from-directory-and-sending-to-logstash/56742 "2016-07-29T15:18:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Apple](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Andrew\_Apple](https://discuss.elastic.co/u/Andrew_Apple)\
**Post date:** [July 29, 2016, 3:18pm UTC](https://discuss.elastic.co/t/filebeat-not-taking-files-from-directory-and-sending-to-logstash/56742/1 "2016-07-29T15:18:16Z")

</div>

The filebeat instance I am running wont seem to send files in a directory to my logstash instance. Below is the filebeat.yml config file which I use a Shell Script to automatically change according to the type of file I want it to take in. I have the FIlebeat service restart every time I change it and still have had zero luck. I also added the logstash config file I use to handle inputs in case that is the issue but I am fairly sure it's filebeat as I cannot seem to get it to output to either logstash or just a file. Any advice on how to troubleshoot this? Everything in the config file is left the same except for the changed path under the "Paths:", the document type, and the logstash output. I had to delete a lot of the config file to make this post due to the character limit but the rest of the file is unchanged from the default configuration.

`  
################### Filebeat Configuration Example #########################

############################# Filebeat ######################################  
filebeat:  
prospectors:  
-  
paths:  
- /home/elkadmin/PlasoData/  
input\_type: log  
document\_type: l2tcsv  
###############################################################################  
############################# Libbeat Config ##################################

# Base config file used by all other beats for using libbeat features

############################# Output ##########################################  
output:

### Logstash as output

logstash:  
# The Logstash hosts  
hosts: ["localhost:5044"]  
# Number of workers per Logstash host.  
#worker: 1  
# Set gzip compression level.  
#compression\_level: 3  
# Optional load balance the events between the Logstash hosts  
#loadbalance: true  
# Optional index name. The default index name depends on the each beat.  
# For Packetbeat, the default is set to packetbeat, for Topbeat  
# top topbeat and for Filebeat to filebeat.  
#index: filebeat  
# Optional TLS. By default is off.

`

Logstash Config File:  
`input { beats { port => 5044 #ssl => true #ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt" #ssl_key => "/etc/pki/tls/private/logstash-forwarder.key" } }`

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 31, 2016, 7:47pm UTC](https://discuss.elastic.co/t/filebeat-not-taking-files-from-directory-and-sending-to-logstash/56742/2 "2016-07-31T19:47:07Z")

</div>

> ```
> - /home/elkadmin/PlasoData/
> 
> ```

Is this really what's in your configuration file? You need to supply a filename pattern, not a directory.

If that doesn't help, consult the Filebeat logs. You may want to increase the log level.

---

<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 19, 2016, 3:18pm UTC](https://discuss.elastic.co/t/filebeat-not-taking-files-from-directory-and-sending-to-logstash/56742/3 "2016-08-19T15:18:25Z")

</div>

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