# How to configure filebeats on docker

**URL:** https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553
**Category:** Beats
**Tags:** filebeat
**Created:** [March 26, 2018, 6:51am UTC](https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553 "2018-03-26T06:51:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gaurav\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaurav\_Agarwal](https://discuss.elastic.co/u/Gaurav_Agarwal)
#### Post date: [March 26, 2018, 6:51am UTC](https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553/1 "2018-03-26T06:51:59Z")

</div>

I want to use Filebeats as my input plugin with my logstash configuration file so is there any descriptive method which I should follow to achieve. I have downloaded the image of filebeats version 5.6.8 on my VM  
But ain't able to configure the same.

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [March 26, 2018, 3:20pm UTC](https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553/2 "2018-03-26T15:20:36Z")

</div>

Are you trying to use filebeat to replace a running logstash? What kind of logs are you collecting with logstash?

You can find general information about how to run filebeat, including in docker, here: [https://www.elastic.co/guide/en/beats/filebeat/current/seting-up-and-running.html](https://www.elastic.co/guide/en/beats/filebeat/current/seting-up-and-running.html)

---

<div class="post-metadata">

### Author: ![Gaurav\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaurav\_Agarwal](https://discuss.elastic.co/u/Gaurav_Agarwal)
#### Post date: [March 27, 2018, 6:09am UTC](https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553/3 "2018-03-27T06:09:37Z")

</div>

Yes I want to use filebeats for a running logstash and the logs are basically apache logs and few application logs.

---

<div class="post-metadata">

### Author: ![Gaurav\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaurav\_Agarwal](https://discuss.elastic.co/u/Gaurav_Agarwal)
#### Post date: [March 29, 2018, 9:59am UTC](https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553/4 "2018-03-29T09:59:23Z")

</div>

filebeat.prospectors:  
input\_type:log  
paths:  
-/logs/app\__/_.log

output.logstash:  
hosts:{"nceapttls13:5044"}

is this correct

---

<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: [April 26, 2018, 10:25am UTC](https://discuss.elastic.co/t/how-to-configure-filebeats-on-docker/125553/6 "2018-04-26T10:25:25Z")

</div>

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