# Update the registry file

**URL:** https://discuss.elastic.co/t/update-the-registry-file/147027
**Category:** Beats
**Tags:** filebeat
**Created:** [September 3, 2018, 7:49am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027 "2018-09-03T07:49:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![saisimo02](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@saisimo02](https://discuss.elastic.co/u/saisimo02)
#### Post date: [September 3, 2018, 7:49am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/1 "2018-09-03T07:49:20Z")

</div>

Hello,  
I would like to update delete the old data from the file "registry", in fact I am getting now an error message : no left space on device.  
So I would like to delete information about files already parsed by logstash after one hour.

Thanks for help 🙂

---

<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: [September 3, 2018, 8:21am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/2 "2018-09-03T08:21:06Z")

</div>

Are you sure that the error you are seeing is not due to Filebeat holding onto file descriptors? What's the output of `lsof -c filebeat`?

---

<div class="post-metadata">

### Author: ![saisimo02](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@saisimo02](https://discuss.elastic.co/u/saisimo02)
#### Post date: [September 3, 2018, 8:24am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/3 "2018-09-03T08:24:14Z")

</div>

I am using an old version of linux, so I am getting lsof bash command not found

---

<div class="post-metadata">

### Author: ![saisimo02](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@saisimo02](https://discuss.elastic.co/u/saisimo02)
#### Post date: [September 3, 2018, 8:27am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/4 "2018-09-03T08:27:56Z")

</div>

In fact when I run filebeat I got a message error that indicates : there is no space left so filebeat can't add new file to registry.new and when I opened registry is stocking data from last week

---

<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: [September 3, 2018, 8:46am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/5 "2018-09-03T08:46:34Z")

</div>

What's the size of the registry file?  
Could you try restarting Filebeat to see if the problem persists?

---

<div class="post-metadata">

### Author: ![saisimo02](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@saisimo02](https://discuss.elastic.co/u/saisimo02)
#### Post date: [September 3, 2018, 8:51am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/6 "2018-09-03T08:51:11Z")

</div>

the size of registry file is 240k it's weird 😕 ! the size of filebeat directory is 48M and the size of my vm is 10Go and there is only filebeat running there. And now the disk is full

---

<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: [September 3, 2018, 9:15am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/7 "2018-09-03T09:15:06Z")

</div>

Have you tried restarting Filebeat?

---

<div class="post-metadata">

### Author: ![saisimo02](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@saisimo02](https://discuss.elastic.co/u/saisimo02)
#### Post date: [September 3, 2018, 9:15am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/8 "2018-09-03T09:15:33Z")

</div>

Yes, and still getting the same problem

---

<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: [October 1, 2018, 9:15am UTC](https://discuss.elastic.co/t/update-the-registry-file/147027/9 "2018-10-01T09:15:48Z")

</div>

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