# Filebeat Still holding the log files even after i upgrade from 5.1.2 to 5.5.2

**URL:** https://discuss.elastic.co/t/filebeat-still-holding-the-log-files-even-after-i-upgrade-from-5-1-2-to-5-5-2/125202
**Category:** Beats
**Tags:** filebeat
**Created:** [March 22, 2018, 1:43pm UTC](https://discuss.elastic.co/t/filebeat-still-holding-the-log-files-even-after-i-upgrade-from-5-1-2-to-5-5-2/125202 "2018-03-22T13:43:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vinoth](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@vinoth](https://discuss.elastic.co/u/vinoth)
#### Post date: [March 22, 2018, 1:43pm UTC](https://discuss.elastic.co/t/filebeat-still-holding-the-log-files-even-after-i-upgrade-from-5-1-2-to-5-5-2/125202/1 "2018-03-22T13:43:23Z")

</div>

Filebeat still holding the log files and not closing it after the logs are rolled out. Which creates the space issue. Previously we had 5.1.2 which had this issue and after we upgrade we thought the issue will be gone but it did not. Once we kill the service the space utilization is greatly reduced.

---

<div class="post-metadata">

### Author: ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)
#### Post date: [March 22, 2018, 6:06pm UTC](https://discuss.elastic.co/t/filebeat-still-holding-the-log-files-even-after-i-upgrade-from-5-1-2-to-5-5-2/125202/2 "2018-03-22T18:06:27Z")

</div>

Are you using the `close_inactive` / `clean_inactive` flags? Can you share your filebeat.yml configuration?

---

<div class="post-metadata">

### Author: ![vinoth](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@vinoth](https://discuss.elastic.co/u/vinoth)
#### Post date: [March 23, 2018, 6:23pm UTC](https://discuss.elastic.co/t/filebeat-still-holding-the-log-files-even-after-i-upgrade-from-5-1-2-to-5-5-2/125202/3 "2018-03-23T18:23:11Z")

</div>

Hi Adrisr,

I have changed the close\_inactive=5 min. let me see if that fixes the issue. Otherwise i will share the yml file. Thanks for your reply.

Regards,  
Naganathan V

---

<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 20, 2018, 6:23pm UTC](https://discuss.elastic.co/t/filebeat-still-holding-the-log-files-even-after-i-upgrade-from-5-1-2-to-5-5-2/125202/4 "2018-04-20T18:23:12Z")

</div>

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