# JSON logs in filestream input not added correctly on Elasticsearch

**URL:** <https://discuss.elastic.co/t/json-logs-in-filestream-input-not-added-correctly-on-elasticsearch/300989>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 29, 2022, 4:17pm UTC](https://discuss.elastic.co/t/json-logs-in-filestream-input-not-added-correctly-on-elasticsearch/300989 "2022-03-29T16:17:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinNouv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martinnouv/32/18995_2.png) [@MartinNouv](https://discuss.elastic.co/u/MartinNouv)\
**Post date:** [March 29, 2022, 4:17pm UTC](https://discuss.elastic.co/t/json-logs-in-filestream-input-not-added-correctly-on-elasticsearch/300989/1 "2022-03-29T16:17:15Z")

</div>

Greetings Elastic Community !

I have an issue about my implementations of some JSON logs into Elasticsearch with a filebeat.

First i didn't used the parsers function, and so all the fields was not implemented and all the content was in a message filed in Elasticsearch.  
Next I found out that i have to use the parsers function in my config file. But now i don't have any entries from Elasticsearch after this add. With the goods lines from my config file, do you have any ideas please ? Of course I'll add new lines from my config if you want and need. Thank you in advance !

```auto
filebeat.inputs:

- type: filestream
enabled: true
  paths:
    - /tmp/tests/*
parsers:
  - ndjson:
keys_under_root: true
overwrite_keys: true

```

---

<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:** [April 26, 2022, 6:17pm UTC](https://discuss.elastic.co/t/json-logs-in-filestream-input-not-added-correctly-on-elasticsearch/300989/2 "2022-04-26T18:17:20Z")

</div>

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