# Logstash don't send to Elastcisearch when i use %{WORD:service} in grok

**URL:** <https://discuss.elastic.co/t/logstash-dont-send-to-elastcisearch-when-i-use-word-service-in-grok/177189>\
**Category:** Logstash\
**Created:** [April 17, 2019, 5:19am UTC](https://discuss.elastic.co/t/logstash-dont-send-to-elastcisearch-when-i-use-word-service-in-grok/177189 "2019-04-17T05:19:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabueno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fabueno/32/44144_2.png) [@fabueno](https://discuss.elastic.co/u/fabueno)\
**Post date:** [April 17, 2019, 5:19am UTC](https://discuss.elastic.co/t/logstash-dont-send-to-elastcisearch-when-i-use-word-service-in-grok/177189/1 "2019-04-17T05:19:44Z")

</div>

Hi, I'm just "training" with grok pattern, and with this log file :

Apr 17 14:26:49 192.168.0.61 firewall 514865 11:12:13:14:15:16 abcd123|-=.\>

If I do : grok { match =\> { ["message", "%{SYSLOGTIMESTAMP:date} %{IP:ip}"] }  
}

It works. But if I add %{WORD:service} to the line, it stop working.

Why ? ❌

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 17, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-dont-send-to-elastcisearch-when-i-use-word-service-in-grok/177189/2 "2019-04-17T12:53:18Z")

</div>

What result do you get with this configuration?

```
input { generator { count => 1 message => 'Apr 17 14:26:49 192.168.0.61 firewall 514865 11:12:13:14:15:16 abcd123' } }

filter { grok { match => ["message", "%{SYSLOGTIMESTAMP:date} %{IP:ip} %{WORD:service}"] } }
```

---

<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 15, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-dont-send-to-elastcisearch-when-i-use-word-service-in-grok/177189/3 "2019-05-15T12:53:27Z")

</div>

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