# The number of nested documents has exceeded the allowed limit of \[10000\]

**URL:** <https://discuss.elastic.co/t/the-number-of-nested-documents-has-exceeded-the-allowed-limit-of-10000/328852>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 29, 2023, 5:02pm UTC](https://discuss.elastic.co/t/the-number-of-nested-documents-has-exceeded-the-allowed-limit-of-10000/328852 "2023-03-29T17:02:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk-user-0001](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@elk-user-0001](https://discuss.elastic.co/u/elk-user-0001)\
**Post date:** [March 29, 2023, 5:02pm UTC](https://discuss.elastic.co/t/the-number-of-nested-documents-has-exceeded-the-allowed-limit-of-10000/328852/1 "2023-03-29T17:02:00Z")

</div>

Hello!

We are reciving the following error:

`The number of nested documents has exceeded the allowed limit of [10000]. This limit can be set by changing the [index.mapping.nested_objects.limit] index level setting.`

We have changed the limit as follow:

```auto
PUT metricbeat/_settings
{
  "index.mapping.nested_objects.limit": 150000
}

```

result:

```auto
        "index" : {
        "mapping" : {
          "nested_objects" : {
            "limit" : "150000"
          },
          "total_fields" : {
            "limit" : "10000"
          }
        }

```

But the error stills.

We have three logstash being monitor but this one in concrete throw this error due to logstash-xpack module.

Could someone help us?

Thank you so much in advanced!

---

<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, 2023, 7:02pm UTC](https://discuss.elastic.co/t/the-number-of-nested-documents-has-exceeded-the-allowed-limit-of-10000/328852/2 "2023-04-26T19:02:28Z")

</div>

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