# Many ttl:-2 states in registry file cause registry file big and makes the performance of filebeat unstable

**URL:** <https://discuss.elastic.co/t/many-ttl-2-states-in-registry-file-cause-registry-file-big-and-makes-the-performance-of-filebeat-unstable/271253>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 26, 2021, 12:16pm UTC](https://discuss.elastic.co/t/many-ttl-2-states-in-registry-file-cause-registry-file-big-and-makes-the-performance-of-filebeat-unstable/271253 "2021-04-26T12:16:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hukaixuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hukaixuan/32/87735_2.png) [@hukaixuan](https://discuss.elastic.co/u/hukaixuan)\
**Post date:** [April 26, 2021, 12:16pm UTC](https://discuss.elastic.co/t/many-ttl-2-states-in-registry-file-cause-registry-file-big-and-makes-the-performance-of-filebeat-unstable/271253/1 "2021-04-26T12:16:53Z")

</div>

how filebeat with k8s autodiscover configuration deal with ttl:-2 states entries when doing cleanup?  
our registry file got really big and lots of ttl:-2 state in it, seems like they didn't got cleaned

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/7/c7d3b6b991410b6740c7d3a975f4ed13fa34ff2c.png)

thanks a lot for your help!

---

<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:** [May 24, 2021, 2:17pm UTC](https://discuss.elastic.co/t/many-ttl-2-states-in-registry-file-cause-registry-file-big-and-makes-the-performance-of-filebeat-unstable/271253/2 "2021-05-24T14:17:20Z")

</div>

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