# Grok patter issue

**URL:** <https://discuss.elastic.co/t/grok-patter-issue/137654>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 27, 2018, 3:10pm UTC](https://discuss.elastic.co/t/grok-patter-issue/137654 "2018-06-27T15:10:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdur\_Raqeeb1](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Abdur\_Raqeeb1](https://discuss.elastic.co/u/Abdur_Raqeeb1)\
**Post date:** [June 27, 2018, 3:10pm UTC](https://discuss.elastic.co/t/grok-patter-issue/137654/1 "2018-06-27T15:10:11Z")

</div>

HI,

Please help me here as my logstash config is getting failed.Please find the error and logstash config file

```
  match => { "message" => { '%{IP:remote_address} - "remote user" - \["local time" %{HTTPDATE:time}] "Request" "%{GREEDYDATA:request}" "status code" %{INT:http_status_code} "bytes Transfer" %{NOTSPACE:bytes-transfer} "http_refere ""-" "http user agent" "%{DATA:httpuseragent}" "http x forwaded for" "%{DATA:http_x_forwarded_for}""requesttime" "%{DATA:requesttime}" "upstream time" "%{DATA:upstream_time}"}' }

```

usr/share/logstash/bin/logstash -t -f /etc/logstash/conf.d/beats.conf  
WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[WARN] 2018-06-27 15:03:41.371 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[FATAL] 2018-06-27 15:03:42.488 [LogStash::Runner] runner - The given configuration is invalid. Reason: Expected one of #, =\> at line 9, column 412 (byte 474) after filter {  
grok {  
match =\> { "message" =\> { '%{IP:remote\_address} - "remote user" - ["local time" %{HTTPDATE:time}] "Request" "%{GREEDYDATA:request}" "status code" %{INT:http\_status\_code} "bytes Transfer" %{NOTSPACE:bytes-transfer} "http\_refere ""-" "http user agent" "%{DATA:httpuseragent}" "http x forwaded for" "%{DATA:http\_x\_forwarded\_for}""requesttime" "%{DATA:requesttime}" "upstream time" "%{DATA:upstream\_time}"}'  
[ERROR] 2018-06-27 15:03:42.504 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [June 27, 2018, 4:55pm UTC](https://discuss.elastic.co/t/grok-patter-issue/137654/2 "2018-06-27T16:55:18Z")

</div>

I think this post belongs to Logstash forums. Do you mind posting the question there?

---

<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 25, 2018, 4:55pm UTC](https://discuss.elastic.co/t/grok-patter-issue/137654/3 "2018-07-25T16:55:20Z")

</div>

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