# Limit of total fields \[1000\] has been exceeded- elasticsearch\_metrics

**URL:** <https://discuss.elastic.co/t/limit-of-total-fields-1000-has-been-exceeded-elasticsearch-metrics/275848>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [June 14, 2021, 2:05pm UTC](https://discuss.elastic.co/t/limit-of-total-fields-1000-has-been-exceeded-elasticsearch-metrics/275848 "2021-06-14T14:05:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethrbunny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethrbunny/32/34603_2.png) [@ethrbunny](https://discuss.elastic.co/u/ethrbunny)\
**Post date:** [June 14, 2021, 2:05pm UTC](https://discuss.elastic.co/t/limit-of-total-fields-1000-has-been-exceeded-elasticsearch-metrics/275848/1 "2021-06-14T14:05:42Z")

</div>

Im attempting to reroute elasticsearch metrics (via metricbeat) from my primary cluster to a monitoring cluster. Monitoring cluster is running 7.13.1 on Centos 8 - main is 7.11.1.

Hitting this error when I restart metricbeat on a primary cluster member:

```
systemd-entrypoint[12048]: [2021-06-14T13:56:34,764][INFO][o.e.a.b.TransportShardBulkAction] [elastic0] [elasticsearch_metrics-2021.06.14][0] mapping update rejected by primary
systemd-entrypoint[12048]: java.lang.IllegalArgumentException: Limit of total fields [1000] has been exceeded

```

On the primary where these indexes currently live I looked at the index in question - only has 894 fields so it's not clear why this error is happening.

I tried creating a template for 'elasticsearch\_metrics-\*' with the following to no avail

```
{
  "template": {
    "settings": {
      "index.mapping.total_fields": {
             "limit": "10000"
        }
     }
   }

```

Is there some global setting I've missed?

---

<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:** [July 12, 2021, 2:06pm UTC](https://discuss.elastic.co/t/limit-of-total-fields-1000-has-been-exceeded-elasticsearch-metrics/275848/2 "2021-07-12T14:06:13Z")

</div>

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