# What's the limit of specified values on a DLS filter?

**URL:** <https://discuss.elastic.co/t/whats-the-limit-of-specified-values-on-a-dls-filter/305050>\
**Category:** Kibana\
**Created:** [May 18, 2022, 10:52am UTC](https://discuss.elastic.co/t/whats-the-limit-of-specified-values-on-a-dls-filter/305050 "2022-05-18T10:52:15Z")\
**Posts on this page:** 2\
**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:** [May 18, 2022, 10:52am UTC](https://discuss.elastic.co/t/whats-the-limit-of-specified-values-on-a-dls-filter/305050/1 "2022-05-18T10:52:15Z")

</div>

Hi! I need to perform a query on a set of specified values, and for that I'm using a filter with a manually defined DSL query such as this one (this is an example recommended in another thread that works fine):

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

```

However, my users keep on increasing the list of individual fields to specify, they might want to add hundreds of these specific IPs as written above. So my question is, is there an upper limit on the amount of values that can be listed like this?

Thanks a lot in advance for your support!

---

<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:** [June 15, 2022, 10:52am UTC](https://discuss.elastic.co/t/whats-the-limit-of-specified-values-on-a-dls-filter/305050/2 "2022-06-15T10:52:39Z")

</div>

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