# How to search for maximum hitting IPs if those IPs are showing in the error.message field

**URL:** <https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792>\
**Category:** Elasticsearch\
**Created:** [May 2, 2020, 5:12am UTC](https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792 "2020-05-02T05:12:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dheeraj\_Bhargav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dheeraj_bhargav/32/67436_2.png) [@Dheeraj\_Bhargav](https://discuss.elastic.co/u/Dheeraj_Bhargav)\
**Post date:** [May 2, 2020, 5:12am UTC](https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792/1 "2020-05-02T05:12:35Z")

</div>

I am getting multiple hits in my IIS logs and want a query to get which IP is hitting multiple times.  
and those ips are showing in the error.message field as a string.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2020, 5:34am UTC](https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792/2 "2020-05-02T05:34:07Z")

</div>

A terms aggregation on the ip field may be?

---

<div class="post-metadata">

**Author:** ![Dheeraj\_Bhargav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dheeraj_bhargav/32/67436_2.png) [@Dheeraj\_Bhargav](https://discuss.elastic.co/u/Dheeraj_Bhargav)\
**Post date:** [May 2, 2020, 5:39am UTC](https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792/3 "2020-05-02T05:39:21Z")

</div>

don't have the ip field all ips coming from CDN and showing in the message field some where.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2020, 1:00pm UTC](https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792/4 "2020-05-02T13:00:17Z")

</div>

You can't do this then. You need to extract from the raw data a structured content which can then be used for this.  
Dissect or grok processors in an ingest pipeline could help.

---

<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:** [May 30, 2020, 1:00pm UTC](https://discuss.elastic.co/t/how-to-search-for-maximum-hitting-ips-if-those-ips-are-showing-in-the-error-message-field/230792/5 "2020-05-30T13:00:20Z")

</div>

Closed on May 30, 2020, 1:00pm UTC

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