# IP data type in terms aggregation

**URL:** <https://discuss.elastic.co/t/ip-data-type-in-terms-aggregation/144530>\
**Category:** Elasticsearch\
**Created:** [August 15, 2018, 2:19pm UTC](https://discuss.elastic.co/t/ip-data-type-in-terms-aggregation/144530 "2018-08-15T14:19:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nati\_Papirovich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nati_papirovich/32/34509_2.png) [@Nati\_Papirovich](https://discuss.elastic.co/u/Nati_Papirovich)\
**Post date:** [August 15, 2018, 2:19pm UTC](https://discuss.elastic.co/t/ip-data-type-in-terms-aggregation/144530/1 "2018-08-15T14:19:30Z")

</div>

I'm trying to filter results on terms aggregation for an IP data type.  
Tried using

> "include" : "10.10.\*"

or

> "include" : "10.10.0.0/16"

but none seems to work 😕  
Any ideas?

---

<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 12, 2018, 2:19pm UTC](https://discuss.elastic.co/t/ip-data-type-in-terms-aggregation/144530/2 "2018-09-12T14:19:32Z")

</div>

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