# Filebeat configuration

**URL:** https://discuss.elastic.co/t/filebeat-configuration/144780
**Category:** Beats
**Tags:** filebeat
**Created:** [August 16, 2018, 8:46pm UTC](https://discuss.elastic.co/t/filebeat-configuration/144780 "2018-08-16T20:46:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TwoDragon](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@TwoDragon](https://discuss.elastic.co/u/TwoDragon)
#### Post date: [August 16, 2018, 8:46pm UTC](https://discuss.elastic.co/t/filebeat-configuration/144780/1 "2018-08-16T20:46:28Z")

</div>

Hi,  
I am new to Filebeat, would someone show me where in the filebeat.yml to set the option for

1. close\_removed
2. close\_inactive

Thanks

---

<div class="post-metadata">

### Author: ![Jymit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jymit/32/45777_2.png) [@Jymit](https://discuss.elastic.co/u/Jymit)
#### Post date: [August 16, 2018, 8:55pm UTC](https://discuss.elastic.co/t/filebeat-configuration/144780/2 "2018-08-16T20:55:10Z")

</div>

Respective docs for both:  
[https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#close-removed](https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#close-removed)  
[https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#clean-inactive](https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#clean-inactive)

These are prospector parameters, so they go under the input\_type. e.g.

```auto
filebeat.prospectors:
 - input_type: log
   close_inactive: 10m
   close_removed: true

```

---

<div class="post-metadata">

### Author: ![TwoDragon](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@TwoDragon](https://discuss.elastic.co/u/TwoDragon)
#### Post date: [August 16, 2018, 9:59pm UTC](https://discuss.elastic.co/t/filebeat-configuration/144780/3 "2018-08-16T21:59:46Z")

</div>

Got it. 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: [September 13, 2018, 9:59pm UTC](https://discuss.elastic.co/t/filebeat-configuration/144780/4 "2018-09-13T21:59:54Z")

</div>

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