# Not possible to apply grok filter to kafka.key

**URL:** <https://discuss.elastic.co/t/not-possible-to-apply-grok-filter-to-kafka-key/105620>\
**Category:** Logstash\
**Created:** [October 27, 2017, 10:55pm UTC](https://discuss.elastic.co/t/not-possible-to-apply-grok-filter-to-kafka-key/105620 "2017-10-27T22:55:23Z")\
**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:** [October 27, 2017, 10:55pm UTC](https://discuss.elastic.co/t/not-possible-to-apply-grok-filter-to-kafka-key/105620/1 "2017-10-27T22:55:24Z")

</div>

Hi,

I am trying to apply grok filter to kafka.key but it isnt getting applied.  
filter{  
grok{  
match =\> ['kafka.key' , '%{GREEDYDATA: IP Address}']  
break\_on\_match =\> false  
}  
}  
I am using this . There is no failure msg on stdout as well.

Thanks!

---

<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:** [October 30, 2017, 8:25pm UTC](https://discuss.elastic.co/t/not-possible-to-apply-grok-filter-to-kafka-key/105620/2 "2017-10-30T20:25:57Z")

</div>

If `kafka.key` is a nested field the supported notation is `[kafka][key]`.

---

<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 27, 2017, 8:26pm UTC](https://discuss.elastic.co/t/not-possible-to-apply-grok-filter-to-kafka-key/105620/3 "2017-11-27T20:26:03Z")

</div>

Closed on November 27, 2017, 8:26pm UTC

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