# Validation Failed: 1: this action would add \[2\] total shards, but this cluster currently has \[2122\]/\[2000\] maximum shards open

**URL:** <https://discuss.elastic.co/t/validation-failed-1-this-action-would-add-2-total-shards-but-this-cluster-currently-has-2122-2000-maximum-shards-open/257678>\
**Category:** Elasticsearch\
**Created:** [December 4, 2020, 4:23pm UTC](https://discuss.elastic.co/t/validation-failed-1-this-action-would-add-2-total-shards-but-this-cluster-currently-has-2122-2000-maximum-shards-open/257678 "2020-12-04T16:23:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristiane\_Marcarini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cristiane_marcarini/32/79393_2.png) [@Cristiane\_Marcarini](https://discuss.elastic.co/u/Cristiane_Marcarini)\
**Post date:** [December 4, 2020, 4:23pm UTC](https://discuss.elastic.co/t/validation-failed-1-this-action-would-add-2-total-shards-but-this-cluster-currently-has-2122-2000-maximum-shards-open/257678/1 "2020-12-04T16:23:02Z")

</div>

How can I solve this problem?

[2020-12-04T10:10:41,540][WARN][logstash.outputs.elasticsearch][main] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>"e45d58acd2b072154d7ac57ceb05491db7286944", :\_index=\>"pr-sim-2020.12.04", :routing=\>nil, :\_type=\>"\_doc"}, #LogStash::Event:0x6f1ef2c2], :response=\>{"index"=\>{"\_index"=\>"pr-sim-2020.12.04", "\_type"=\>"\_doc", "\_id"=\>"e45d58acd2b072154d7ac57ceb05491db7286944", "status"=\>400, "error"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [2122]/[2000] maximum shards open;"}}}}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 4, 2020, 4:59pm UTC](https://discuss.elastic.co/t/validation-failed-1-this-action-would-add-2-total-shards-but-this-cluster-currently-has-2122-2000-maximum-shards-open/257678/2 "2020-12-04T16:59:27Z")

</div>

You have too many shards on your nodes.

What is the output of:

```auto
GET /
GET /_cat/nodes?v
GET /_cat/health?v
GET /_cat/indices?v

```

If some outputs are too big, please share them on [gist.github.com](http://gist.github.com) and link them here.

---

<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:** [January 1, 2021, 4:59pm UTC](https://discuss.elastic.co/t/validation-failed-1-this-action-would-add-2-total-shards-but-this-cluster-currently-has-2122-2000-maximum-shards-open/257678/3 "2021-01-01T16:59:33Z")

</div>

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