# Grok Filter not being applied

**URL:** <https://discuss.elastic.co/t/grok-filter-not-being-applied/99895>\
**Category:** Logstash\
**Created:** [September 8, 2017, 8:09pm UTC](https://discuss.elastic.co/t/grok-filter-not-being-applied/99895 "2017-09-08T20:09:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Liang](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Kevin\_Liang](https://discuss.elastic.co/u/Kevin_Liang)\
**Post date:** [September 8, 2017, 8:09pm UTC](https://discuss.elastic.co/t/grok-filter-not-being-applied/99895/1 "2017-09-08T20:09:25Z")

</div>

message:  
vspp\_manager1\_log 09/08/17 19:12:55.874 I SESSION 17126 @EGPHCAAAHLLOCLJF Session allocation request: streamer\_id 192.168.96.211, initiator /, stb\_id , s\_mode STATIC, device profile

filter{  
if [message] =~ "vspp\_manager1\_log" {  
grok {  
match =\> ["message", '%{NOTSPACE:role} %{DATE\_US:timestamp\_match} %{TIME:timematch} %{GREEDYDATA:message}']  
overwrite =\> ["message"] }  
date {  
match =\> ["timematch", "HH:mm:ss.SSS"]  
target=\> "@timestamp"  
remove\_field =\> ["timematch"]}}  
}

The role and timestamp are not being created. Any ideas?

---

<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:** [September 11, 2017, 3:47am UTC](https://discuss.elastic.co/t/grok-filter-not-being-applied/99895/2 "2017-09-11T03:47:23Z")

</div>

Please show an example event that Logstash has processed. Use a `stdout { codec => rubydebug }` output.

---

<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:** [October 9, 2017, 3:47am UTC](https://discuss.elastic.co/t/grok-filter-not-being-applied/99895/3 "2017-10-09T03:47:23Z")

</div>

Closed on October 9, 2017, 3:47am UTC

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