# Filebeat start too long when registry is too large

**URL:** https://discuss.elastic.co/t/filebeat-start-too-long-when-registry-is-too-large/184177
**Category:** Beats
**Tags:** filebeat
**Created:** [June 4, 2019, 12:31pm UTC](https://discuss.elastic.co/t/filebeat-start-too-long-when-registry-is-too-large/184177 "2019-06-04T12:31:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jasper-zhang](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jasper-zhang](https://discuss.elastic.co/u/jasper-zhang)
#### Post date: [June 4, 2019, 12:31pm UTC](https://discuss.elastic.co/t/filebeat-start-too-long-when-registry-is-too-large/184177/1 "2019-06-04T12:31:40Z")

</div>

My registry is about 13M. When I restart Filebeat, It spends about 2 hours before start Harvester.

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [June 5, 2019, 7:45am UTC](https://discuss.elastic.co/t/filebeat-start-too-long-when-registry-is-too-large/184177/2 "2019-06-05T07:45:04Z")

</div>

Have you set the option `clean_removed`? If not, see its documentation here: [https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-log.html#filebeat-input-log-clean-removed](https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-log.html#filebeat-input-log-clean-removed)

---

<div class="post-metadata">

### Author: ![jasper-zhang](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jasper-zhang](https://discuss.elastic.co/u/jasper-zhang)
#### Post date: [June 5, 2019, 8:34am UTC](https://discuss.elastic.co/t/filebeat-start-too-long-when-registry-is-too-large/184177/3 "2019-06-05T08:34:07Z")

</div>

I have set the option `clean_removed`, but a large number of new files are produced every day, and these files must be keeped on server for 7 days.

---

<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: [July 3, 2019, 8:39am UTC](https://discuss.elastic.co/t/filebeat-start-too-long-when-registry-is-too-large/184177/4 "2019-07-03T08:39:29Z")

</div>

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