# Problem with config?

**URL:** <https://discuss.elastic.co/t/problem-with-config/902>\
**Category:** Logstash\
**Created:** [May 19, 2015, 1:21pm UTC](https://discuss.elastic.co/t/problem-with-config/902 "2015-05-19T13:21:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesurfl](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lesurfl](https://discuss.elastic.co/u/lesurfl)\
**Post date:** [May 19, 2015, 1:21pm UTC](https://discuss.elastic.co/t/problem-with-config/902/1 "2015-05-19T13:21:59Z")

</div>

Hi,

I've been testing out some grok patterns and I thought I had everything working but in production I get the following output:

```
+---------------------------------------------------------+
| An unexpected error occurred. This is probably a bug. |
| You can find help with this problem in a few places: |
| |
| * chat: #logstash IRC channel on freenode irc. |
| IRC via the web: http://goo.gl/TI4Ro |
| * email: logstash-users@googlegroups.com |
| * bug system: https://logstash.jira.com/ |
| |
+---------------------------------------------------------+
The error reported is: 
  undefined group option: /(?<a0>(?<a1>(?<a2>(?:(?<a3>\b(?:[0-9A-Za-z][0-9A-Za-z-]{0,62})(?:\.(?:[0-9A-Za-z][0-9A-Za-z-]{0,62}))*(\.?|\b))|(?<a4>(?:(?<a5>((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\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?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+)))))) (?$)/

```

The config in question is:

```
input {
  file {
    type => "flowforce"
    path => ["/var/opt/Altova/FlowForceServer2015/data/fflog.log", "/var/opt/Altova/FlowForceServer2015/data/flowforce.log"]
  }
}
filter {
    if [type] == "flowforce" {
      if "_grokparsefailure" in [tags] {
        drop { }
      }
      grok {
        patterns_dir => "/etc/logstash/patterns/flowforce-patterns"
        match => ["message", "%{FFP1}", "message", "%{FFP2}", "message", "%{FFP3}"]
      }
      date {
       match => ["timestamp", "[dd/MMM/yyyy:HH:mm:ss]", "yyyy-MM-dd HH:mm:ss.SSSSSS" ]
      }
    }
}
output {
  redis {
    host => " *****"
    data_type => "list"
    key => "logstash"
    codec => json
  }
}

```

The patterns referenced are:

```
FFP1 %{URIHOST:clientip} [-] %{USER:ident} %{SYSLOG5424SD} "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" %{NUMBER:response} (?$
FFP2 %{SYSLOG5424SD:timestamp} %{GREEDYDATA:message}
FFP3 %{TIMESTAMP_ISO8601:timestamp}[|]%{LOGLEVEL:loglevel}[|]%{GREEDYDATA:message}

```

I ran the config using -t and it said the configuration was OK..

Does anybody have any ideas what might be up?

Thanks

Luke

---

<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:** [May 19, 2015, 1:37pm UTC](https://discuss.elastic.co/t/problem-with-config/902/2 "2015-05-19T13:37:38Z")

</div>

You have `(?$` in your FFP1 pattern. Is that really correct?

---

<div class="post-metadata">

**Author:** ![lesurfl](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lesurfl](https://discuss.elastic.co/u/lesurfl)\
**Post date:** [May 19, 2015, 2:10pm UTC](https://discuss.elastic.co/t/problem-with-config/902/3 "2015-05-19T14:10:12Z")

</div>

Ah ha. No, it's very much incorrect. It's truncated.

Well spotted. Thank you very much.

Luke

---

<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 6, 2017, 5:39am UTC](https://discuss.elastic.co/t/problem-with-config/902/4 "2017-07-06T05:39:41Z")

</div>


