# Logstash CIDR network range

**URL:** <https://discuss.elastic.co/t/logstash-cidr-network-range/251391>\
**Category:** Logstash\
**Created:** [October 8, 2020, 7:51am UTC](https://discuss.elastic.co/t/logstash-cidr-network-range/251391 "2020-10-08T07:51:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParashB](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@ParashB](https://discuss.elastic.co/u/ParashB)\
**Post date:** [October 8, 2020, 7:51am UTC](https://discuss.elastic.co/t/logstash-cidr-network-range/251391/1 "2020-10-08T07:51:51Z")

</div>

Hello,

How to match IP range which is not full network range?  
Example: 172.20.23.5 in [172.16.0.0 -172.31.255.255]

CIDR filter plugin specifies the full range but I need to search is specific range.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 8, 2020, 2:55pm UTC](https://discuss.elastic.co/t/logstash-cidr-network-range/251391/2 "2020-10-08T14:55:48Z")

</div>

Sounds like you want to match against 172.16.0.0/12. What is stopping you doing that using a cidr filter?

---

<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:** [November 5, 2020, 2:55pm UTC](https://discuss.elastic.co/t/logstash-cidr-network-range/251391/3 "2020-11-05T14:55:49Z")

</div>

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