# Help in resetting filebeat registry to reread in log files

**URL:** https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216
**Category:** Beats
**Tags:** filebeat
**Created:** [December 13, 2023, 5:05am UTC](https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216 "2023-12-13T05:05:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![allan.silverstein](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@allan.silverstein](https://discuss.elastic.co/u/allan.silverstein)
#### Post date: [December 13, 2023, 5:05am UTC](https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216/1 "2023-12-13T05:05:28Z")

</div>

Hello, does anyone know how to reset the filebeat registry so I can reread in existing log files. This is for testing purposes... This is for filebeat version 8.10.4. I tried deleting the files in /var/lib/filebeat/registry/filebeat but then then filebeat would not start?? Thx

```auto
root@dev-ubuntu-200403-gui-vm-3:/var/lib/filebeat# tree
.
├── filebeat.lock
├── meta.json
└── registry
    └── filebeat
        ├── 4668122.json
        ├── active.dat
        ├── log.json
        └── meta.json

2 directories, 6 files
root@dev-ubuntu-200403-gui-vm-3:/var/lib/filebeat#

```

> Blockquote

---

<div class="post-metadata">

### Author: ![allan.silverstein](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@allan.silverstein](https://discuss.elastic.co/u/allan.silverstein)
#### Post date: [December 13, 2023, 5:34am UTC](https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216/2 "2023-12-13T05:34:57Z")

</div>

Got this working by removing the following directory and all files below it.  
rm -rf /var/lib/filebeat/registry

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [December 13, 2023, 5:54am UTC](https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216/3 "2023-12-13T05:54:51Z")

</div>

Only need to remove log.json

---

<div class="post-metadata">

### Author: ![allan.silverstein](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@allan.silverstein](https://discuss.elastic.co/u/allan.silverstein)
#### Post date: [December 13, 2023, 10:10pm UTC](https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216/4 "2023-12-13T22:10:50Z")

</div>

Ok. Thx. I'll try that next.

---

<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: [January 11, 2024, 12:11am UTC](https://discuss.elastic.co/t/help-in-resetting-filebeat-registry-to-reread-in-log-files/349216/5 "2024-01-11T00:11:37Z")

</div>

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