# Kibana - maximum amount of values in the DSL terms search

**URL:** <https://discuss.elastic.co/t/kibana-maximum-amount-of-values-in-the-dsl-terms-search/296585>\
**Category:** Kibana\
**Created:** [February 8, 2022, 11:36am UTC](https://discuss.elastic.co/t/kibana-maximum-amount-of-values-in-the-dsl-terms-search/296585 "2022-02-08T11:36:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![InesCM](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@InesCM](https://discuss.elastic.co/u/InesCM)\
**Post date:** [February 8, 2022, 11:36am UTC](https://discuss.elastic.co/t/kibana-maximum-amount-of-values-in-the-dsl-terms-search/296585/1 "2022-02-08T11:36:14Z")

</div>

Hi! I'm trying to do a DSL filter in Kibana, in order to filter by a large amount of values on a specific field. For this, I'm using this syntax:

```auto
{
  "query": {
    "bool": {
      "filter": {
        "terms": {
          "ip": [
            "185.231.86.130",
            "166.24.243.98",
            "155.171.113.115"
          ]
        }
      }
    }
  }
}

```

My question is: what's the maximum number of values that I can include inside the Terms part? Is it the same as the one defined for Elasticsearch, or does Kibana have a specific limitation in the DSL filter functionality?

Thanks a lot in advance for your support!

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [February 8, 2022, 11:52am UTC](https://discuss.elastic.co/t/kibana-maximum-amount-of-values-in-the-dsl-terms-search/296585/2 "2022-02-08T11:52:44Z")

</div>

I am not aware of any additional safeguards on the Kibana side. Are you experiencing any issues?

---

<div class="post-metadata">

**Author:** ![InesCM](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@InesCM](https://discuss.elastic.co/u/InesCM)\
**Post date:** [February 8, 2022, 12:45pm UTC](https://discuss.elastic.co/t/kibana-maximum-amount-of-values-in-the-dsl-terms-search/296585/3 "2022-02-08T12:45:55Z")

</div>

Hi Maja!

Some customers were complaining that they could not complete the search when the amount of values was high, but maybe that was just performance. I will address this to my ELK DevOps team then, so they can confirm what's the limitation on the ELK side (65K as default or lower, if they somehow decided to limit on their side).

Thanks so much!

---

<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:** [March 8, 2022, 12:46pm UTC](https://discuss.elastic.co/t/kibana-maximum-amount-of-values-in-the-dsl-terms-search/296585/4 "2022-03-08T12:46:44Z")

</div>

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