# Running Filebeat in docker with persistent registry file?

**URL:** https://discuss.elastic.co/t/running-filebeat-in-docker-with-persistent-registry-file/191595
**Category:** Beats
**Tags:** filebeat
**Created:** [July 22, 2019, 7:40am UTC](https://discuss.elastic.co/t/running-filebeat-in-docker-with-persistent-registry-file/191595 "2019-07-22T07:40:53Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)
#### Post date: [July 22, 2019, 9:24am UTC](https://discuss.elastic.co/t/running-filebeat-in-docker-with-persistent-registry-file/191595/5 "2019-07-22T09:24:08Z")

</div>

Yes. That would be sufficient. 🙂

Also, in case you wish to delete the old files, have a look here:

> [@Delete files using the "registry" file](https://discuss.elastic.co/t/delete-files-using-the-registry-file/136788):
>
> Hi, I have a use case in which, multiple large files are pushed on a server. These are read by Filebeat and sent to Logstash. I have written a script to read the registry file and get the filenames that have been acknowledged by Fielbeat. My question is, if it is safe to delete these files? When is a file actually updated in the registry? Are the files updated after they are completely processed by beats or are they updated when beats starts to process them? Please suggest.

---

_[View the full topic](https://discuss.elastic.co/t/running-filebeat-in-docker-with-persistent-registry-file/191595)._
