# Filebeat -\> Exiting: failed reading meta file: unexpected end of JSON input

**URL:** <https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 9, 2022, 11:37am UTC](https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535 "2022-11-09T11:37:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dissonance](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Dissonance](https://discuss.elastic.co/u/Dissonance)\
**Post date:** [November 9, 2022, 11:37am UTC](https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535/1 "2022-11-09T11:37:16Z")

</div>

Good afternoon,

OS: Ubuntu 22.04

I tried Filebeat (version 8.5 and 7.17.1). Both versions cannot be started with the error:

{"log.level":"error","@timestamp":"2022-11-09T11:28:21.598Z","log.origin":{"file.name":"instance/beat.go","file.line":1056},"message":"Exiting: failed reading meta file: unexpected end of JSON input","service.name":"filebeat","ecs.version":"1.6.0"}  
Exiting: failed reading meta file: unexpected end of JSON input

Cannot find any solution on the Internet.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [November 9, 2022, 2:08pm UTC](https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535/2 "2022-11-09T14:08:22Z")

</div>

Hi Dissonance,

Welcome! End of file errors such as that are normally an issue with your configuration such as a missing close quote or bracket. Can you check and share your configuration please?

---

<div class="post-metadata">

**Author:** ![Dissonance](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Dissonance](https://discuss.elastic.co/u/Dissonance)\
**Post date:** [November 9, 2022, 6:08pm UTC](https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535/3 "2022-11-09T18:08:42Z")

</div>

Yes, here is my config.

Seccomp section is used because of glibc issue (Detailed: [https://kifarunix.com/how-to-fix-filebeat-glibc-related-errors/#allow-filebeat-rseq-syscall](https://kifarunix.com/how-to-fix-filebeat-glibc-related-errors/#allow-filebeat-rseq-syscall))

```auto
---
filebeat.inputs:
  - type: filestream
    id: my-filestream-id
    enabled: false
    paths:
      - /var/log/*.log
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
output.logstash:
  hosts: ["localhost:5044"]
processors:
  - add_host_metadata:
      when.not.contains.tags: forwarded
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~

seccomp:
  default_action: allow
  syscalls:
    - action: allow
      names:
        - rseq

```

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fbe8ef38fe20ce110dd20190a9837bf768aad1e4.jpeg)  
 ![2](https://us1.discourse-cdn.com/elastic/original/3X/3/2/32848a2854a87069a034c1c03ae84ce0d59ce9fa.jpeg)

---

<div class="post-metadata">

**Author:** ![Dissonance](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Dissonance](https://discuss.elastic.co/u/Dissonance)\
**Post date:** [November 10, 2022, 10:21am UTC](https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535/4 "2022-11-10T10:21:32Z")

</div>

The problem has been sorted out.  
Wrong Ubuntu distributive. Thank you.

---

<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:** [December 8, 2022, 12:22pm UTC](https://discuss.elastic.co/t/filebeat-exiting-failed-reading-meta-file-unexpected-end-of-json-input/318535/5 "2022-12-08T12:22:26Z")

</div>

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