# Kibana Error in Console tab...illegal\_argument\_exception

**URL:** <https://discuss.elastic.co/t/kibana-error-in-console-tab-illegal-argument-exception/97954>\
**Category:** Kibana\
**Created:** [August 22, 2017, 6:34pm UTC](https://discuss.elastic.co/t/kibana-error-in-console-tab-illegal-argument-exception/97954 "2017-08-22T18:34:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudi\_2611](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sudi\_2611](https://discuss.elastic.co/u/sudi_2611)\
**Post date:** [August 22, 2017, 6:34pm UTC](https://discuss.elastic.co/t/kibana-error-in-console-tab-illegal-argument-exception/97954/1 "2017-08-22T18:34:00Z")

</div>

```auto
"error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "Trying to query 1315 shards, which is over the limit of 1000. This limit exists because querying many shards at the same time can make the job of the coordinating node very CPU and/or memory intensive. It is usually a better idea to have a smaller number of larger shards. Update [action.search.shard_count.limit] to a greater value if you really want to query that many shards at the same time."
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "Trying to query 1315 shards, which is over the limit of 1000. This limit exists because querying many shards at the same time can make the job of the coordinating node very CPU and/or memory intensive. It is usually a better idea to have a smaller number of larger shards. Update [action.search.shard_count.limit] to a greater value if you really want to query that many shards at the same time."
  },
  "status": 400
}

```

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [August 23, 2017, 12:22am UTC](https://discuss.elastic.co/t/kibana-error-in-console-tab-illegal-argument-exception/97954/2 "2017-08-23T00:22:31Z")

</div>

> Trying to query 1315 shards, which is over the limit of 1000. This limit exists because querying many shards at the same time can make the job of the coordinating node very CPU and/or memory intensive. It is usually a better idea to have a smaller number of larger shards. Update [action.search.shard\_count.limit] to a greater value if you really want to query that many shards at the same time.

The error is pretty descriptive. If you wish to continue with the current number of shards than you should increase the limit, but I would first see why you have so many shards.

---

<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 3, 2017, 1:52pm UTC](https://discuss.elastic.co/t/kibana-error-in-console-tab-illegal-argument-exception/97954/4 "2017-10-03T13:52:40Z")

</div>

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