# FileBeat filestream ndjson breaking array with nested objects

**URL:** <https://discuss.elastic.co/t/filebeat-filestream-ndjson-breaking-array-with-nested-objects/343383>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 19, 2023, 3:07pm UTC](https://discuss.elastic.co/t/filebeat-filestream-ndjson-breaking-array-with-nested-objects/343383 "2023-09-19T15:07:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dusatvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dusatvoj/32/93695_2.png) [@dusatvoj](https://discuss.elastic.co/u/dusatvoj)\
**Post date:** [September 19, 2023, 3:07pm UTC](https://discuss.elastic.co/t/filebeat-filestream-ndjson-breaking-array-with-nested-objects/343383/1 "2023-09-19T15:07:30Z")

</div>

Hello,  
I have ndjson which is scraped by filebeat, transferred via redis and logstash (which has no filter rule, except date) into elasticsearch.

The ndjson structure is smth like:

```auto
{
"array_of_objects": [
        { "attr1": true, "attr2": 42 },
        { "attr1": false, "attr2": 43 },
        { "attr1": true, "attr2": 44 }
    ]
...
}

```

The object is transformed into:

```auto
{
"array_of_objects.attr1": [true, false, true],
"array_of_objects.attr2": [42, 43, 44]
...
}

```

Is there a possibility to disable this transformation?

---

<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 17, 2023, 5:08pm UTC](https://discuss.elastic.co/t/filebeat-filestream-ndjson-breaking-array-with-nested-objects/343383/2 "2023-10-17T17:08:00Z")

</div>

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