# Help with grok filter for \[::ffff:127.0.0.1\] hybrid + port

**URL:** <https://discuss.elastic.co/t/help-with-grok-filter-for-127-0-0-1-hybrid-port/337198>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 29, 2023, 1:08pm UTC](https://discuss.elastic.co/t/help-with-grok-filter-for-127-0-0-1-hybrid-port/337198 "2023-06-29T13:08:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SedonD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sedond/32/122686_2.png) [@SedonD](https://discuss.elastic.co/u/SedonD)\
**Post date:** [June 29, 2023, 1:08pm UTC](https://discuss.elastic.co/t/help-with-grok-filter-for-127-0-0-1-hybrid-port/337198/1 "2023-06-29T13:08:41Z")

</div>

Hi there,

I need some help to filter (Grok) the following, f.e.: **[::ffff:88.88.88.88]:4262**,...

this is a log snippet where I need to filter out the IP and port from the following formats...

_"New request 366c89e6-9c94-4641-9261-af4c46c18b11 **from [::ffff:88.88.88.88]:41496**"_

Any help is welcome, THX

Br: SedonD

---

<div class="post-metadata">

**Author:** ![SedonD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sedond/32/122686_2.png) [@SedonD](https://discuss.elastic.co/u/SedonD)\
**Post date:** [June 29, 2023, 3:16pm UTC](https://discuss.elastic.co/t/help-with-grok-filter-for-127-0-0-1-hybrid-port/337198/2 "2023-06-29T15:16:10Z")

</div>

May be???:

%{GREEDYDATA:message} \*%{IP:src\_ip}]:%{INT:src\_port}

---

<div class="post-metadata">

**Author:** ![SedonD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sedond/32/122686_2.png) [@SedonD](https://discuss.elastic.co/u/SedonD)\
**Post date:** [June 29, 2023, 5:26pm UTC](https://discuss.elastic.co/t/help-with-grok-filter-for-127-0-0-1-hybrid-port/337198/3 "2023-06-29T17:26:19Z")

</div>

gotcha 🙂

```auto
%{GREEDYDATA:message} \[::ffff:%{IPV4:src_ip}]:%{INT:src_port}

```

---

<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:** [July 27, 2023, 7:27pm UTC](https://discuss.elastic.co/t/help-with-grok-filter-for-127-0-0-1-hybrid-port/337198/4 "2023-07-27T19:27:10Z")

</div>

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