# Close inactive option in filebeat

**URL:** https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458
**Category:** Beats
**Tags:** filebeat
**Created:** [December 20, 2021, 11:52am UTC](https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458 "2021-12-20T11:52:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mangesh\_shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mangesh_shinde/32/93271_2.png) [@mangesh\_shinde](https://discuss.elastic.co/u/mangesh_shinde)
#### Post date: [December 20, 2021, 11:52am UTC](https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458/1 "2021-12-20T11:52:40Z")

</div>

I do have file which may in active for long time so I cant use close\_inactive option in filebeat so is there any option to disable this. inactivity time might be days so

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [December 20, 2021, 1:40pm UTC](https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458/2 "2021-12-20T13:40:41Z")

</div>

Hi,

Did you try to set the `ignore_older` to a few days?

---

<div class="post-metadata">

### Author: ![mangesh\_shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mangesh_shinde/32/93271_2.png) [@mangesh\_shinde](https://discuss.elastic.co/u/mangesh_shinde)
#### Post date: [December 20, 2021, 5:03pm UTC](https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458/3 "2021-12-20T17:03:50Z")

</div>

> [@mtojek](#):
>
> ignore\_older

But my flebeat is stopping itself if file is inactive for longer period. So after this new events are not index because FB is auto stopped. I use fllowing command for running filebeat.

```auto
nohup ./filebeat -c filebeat.yml &

```

on Linux machine

---

<div class="post-metadata">

### Author: ![mangesh\_shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mangesh_shinde/32/93271_2.png) [@mangesh\_shinde](https://discuss.elastic.co/u/mangesh_shinde)
#### Post date: [December 20, 2021, 5:06pm UTC](https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458/4 "2021-12-20T17:06:15Z")

</div>

no I didn't use this. Even my log file is moved to another location (other than file path pattern) daily or exceeding 50 MB size.

---

<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: [January 17, 2022, 7:06pm UTC](https://discuss.elastic.co/t/close-inactive-option-in-filebeat/292458/5 "2022-01-17T19:06:19Z")

</div>

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