# Filebeat setting for removing harvested files from registry file?

**URL:** https://discuss.elastic.co/t/filebeat-setting-for-removing-harvested-files-from-registry-file/274679
**Category:** Beats
**Tags:** filebeat
**Created:** [June 1, 2021, 7:17pm UTC](https://discuss.elastic.co/t/filebeat-setting-for-removing-harvested-files-from-registry-file/274679 "2021-06-01T19:17:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Resington\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/resington_r/32/85143_2.png) [@Resington\_R](https://discuss.elastic.co/u/Resington_R)
#### Post date: [June 1, 2021, 7:17pm UTC](https://discuss.elastic.co/t/filebeat-setting-for-removing-harvested-files-from-registry-file/274679/1 "2021-06-01T19:17:38Z")

</div>

I am a newbie, I am running Filebeat in my application server, to transfer log files to logstash server. My Application server creates new log files once in every 3 minutes 24x7 (i.e., 480 files per day). These files are once written files, so once harvested these files can be removed from the filebeat registry. I can't use "ignore\_older", because sometimes the application server may not be able to connect logstash server for more than 2 or 3 days. But once connected, these files has to be harvested (transferred to logstash server). What settings I have to use? Can anyone please help me. Thanks in advance..

---

<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: [June 29, 2021, 9:18pm UTC](https://discuss.elastic.co/t/filebeat-setting-for-removing-harvested-files-from-registry-file/274679/2 "2021-06-29T21:18:14Z")

</div>

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