# Logstash match IP range

**URL:** <https://discuss.elastic.co/t/logstash-match-ip-range/96086>\
**Category:** Logstash\
**Created:** [August 7, 2017, 10:43am UTC](https://discuss.elastic.co/t/logstash-match-ip-range/96086 "2017-08-07T10:43:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilya](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ilya](https://discuss.elastic.co/u/ilya)\
**Post date:** [August 7, 2017, 10:43am UTC](https://discuss.elastic.co/t/logstash-match-ip-range/96086/1 "2017-08-07T10:43:08Z")

</div>

Hello,

Is possible to find is any IP address match IP range which is not full network range?  
Example:  
Is 192.168.1.5 in [192.168.0.1-192.168.1.14]

---

<div class="post-metadata">

**Author:** ![paz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paz/32/28003_2.png) [@paz](https://discuss.elastic.co/u/paz)\
**Post date:** [August 7, 2017, 10:51am UTC](https://discuss.elastic.co/t/logstash-match-ip-range/96086/2 "2017-08-07T10:51:56Z")

</div>

You might wanna use the [CIDR filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-cidr.html). It does precisely what you are after 🙂

---

<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 11, 2017, 12:50pm UTC](https://discuss.elastic.co/t/logstash-match-ip-range/96086/5 "2017-09-11T12:50:42Z")

</div>

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