# Applying grok filter to Kakfa.key

**URL:** <https://discuss.elastic.co/t/applying-grok-filter-to-kakfa-key/98418>\
**Category:** Logstash\
**Created:** [August 25, 2017, 8:48pm UTC](https://discuss.elastic.co/t/applying-grok-filter-to-kakfa-key/98418 "2017-08-25T20:48:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashvita](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@ashvita](https://discuss.elastic.co/u/ashvita)\
**Post date:** [August 25, 2017, 8:48pm UTC](https://discuss.elastic.co/t/applying-grok-filter-to-kakfa-key/98418/1 "2017-08-25T20:48:36Z")

</div>

Hi,

I am trying to apply grok filter on kafka key but it is not getting parsed.  
grok {  
match =\> ['key', '%{IP:NodeIP}%{DATA:}%{IP:Ip2}']  
}

I cant see these fields getting created.  
Thank you!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 25, 2017, 9:27pm UTC](https://discuss.elastic.co/t/applying-grok-filter-to-kakfa-key/98418/2 "2017-08-25T21:27:19Z")

</div>

So what does the resulting event look like? Use a `stdout { codec => rubydebug }` output to get a raw dump of the event.

Where's the field name after "DATA:"?

---

<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 22, 2017, 9:27pm UTC](https://discuss.elastic.co/t/applying-grok-filter-to-kakfa-key/98418/3 "2017-09-22T21:27:21Z")

</div>

Closed on September 22, 2017, 9:27pm UTC

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