# Filebeat文件注册表无法更新，日志无法收集

**URL:** <https://discuss.elastic.co/t/filebeat/286429>\
**Category:** 中文提问与讨论\
**Created:** [October 12, 2021, 3:42am UTC](https://discuss.elastic.co/t/filebeat/286429 "2021-10-12T03:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StruggleYang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/struggleyang/32/57040_2.png) [@StruggleYang](https://discuss.elastic.co/u/StruggleYang)\
**Post date:** [October 12, 2021, 3:42am UTC](https://discuss.elastic.co/t/filebeat/286429/1 "2021-10-12T03:42:59Z")

</div>

filebeat注册表一直出现如下日志

```auto
2021-10-12T03:11:29.199Z ERROR registrar/registrar.go:374 Writing of registry returned error: rename /usr/share/filebeat/data/registry/filebeat/data.json.new /usr/share/filebeat/data/registry/filebeat/data.json: no such file or directory. Continuing...

```

运行环境: k8s  
运行模式: DaemonSet  
注册表映射： /usr/share/filebeat/data(容器内部) \> /data/filebeat-data(宿主机)  
文件权限情况:

```auto
[root@VM_2_38_centos filebeat]# ll /usr/share/filebeat/data/registry/filebeat/         
total 44
-rw------- 1 root root 38178 Oct 12 03:41 data.json
-rw------- 1 root root 16 Aug 5 2020 meta.json
[root@VM_2_38_centos filebeat]

```

---

<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:** [November 9, 2021, 3:43am UTC](https://discuss.elastic.co/t/filebeat/286429/2 "2021-11-09T03:43:35Z")

</div>

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