# Module elasticsearch issue with filed limit

**URL:** <https://discuss.elastic.co/t/module-elasticsearch-issue-with-filed-limit/282592>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [August 26, 2021, 2:55pm UTC](https://discuss.elastic.co/t/module-elasticsearch-issue-with-filed-limit/282592 "2021-08-26T14:55:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Messias\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/messias_2/32/74381_2.png) [@Messias\_2](https://discuss.elastic.co/u/Messias_2)\
**Post date:** [August 26, 2021, 2:55pm UTC](https://discuss.elastic.co/t/module-elasticsearch-issue-with-filed-limit/282592/1 "2021-08-26T14:55:49Z")

</div>

Hi,

I use metric beat to monitor elasticsearch per docker.

```auto
metricbeat.config:
  modules:
    path: ${path.config}/modules.d/*.yml
    # Reload module configs as they change:
    reload.enabled: false

processors:
  - add_cloud_metadata: ~
  - add_docker_metadata: ~

metricbeat.modules:
- module: elasticsearch
  xpack.enabled: true
  period: 10s
  hosts: [https://ELASTIC1:9200,https://ELASTIC2:9200,https://ELASTIC3:9200]
  username: '${ELASTICSEARCH_USERNAME:}'
  password: '${ELASTICSEARCH_PASSWORD:}'
  ssl.certificate_authorities: ["/certs/ca.crt"]

output.elasticsearch:
  hosts: '${ELASTICSEARCH_HOSTS:}'
  username: '${ELASTICSEARCH_USERNAME:}'
  password: '${ELASTICSEARCH_PASSWORD:}'
  ssl.certificate_authorities: ["/certs/ca.crt"]

```

It works fine for a few days but after a restart of docker container I get the following error:

cuted output:  
` elasticsearch/client.go:405 Cannot index event publisher.Event{Content:beat.Event{Timestamp:time.Time{wall:0xc042085d74feeae2, ext:386406978238, loc:(*time.Location)(0x55c975d62540)}, Meta:{"index":".monitoring-es-7-mb"}, Fields:{"agent":{"ephemeral_id ....... Cache:publisher.EventCache{m:common.MapStr(nil)}} (status=400): {"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"illegal_argument_exception","reason":"Limit of total fields [1000] has been exceeded while adding new fields [656]"}}`

this appear about every 5 seconds. I have also deleted all .monitoring-es-7 indices but the issue still appear.

How can I fix this?

Best Regards

---

<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:** [September 23, 2021, 4:56pm UTC](https://discuss.elastic.co/t/module-elasticsearch-issue-with-filed-limit/282592/2 "2021-09-23T16:56:11Z")

</div>

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