# Logstash GREEDYMULTILINE

**URL:** <https://discuss.elastic.co/t/logstash-greedymultiline/85394>\
**Category:** Logstash\
**Created:** [May 11, 2017, 12:42pm UTC](https://discuss.elastic.co/t/logstash-greedymultiline/85394 "2017-05-11T12:42:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogomop](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bogomop](https://discuss.elastic.co/u/bogomop)\
**Post date:** [May 11, 2017, 12:42pm UTC](https://discuss.elastic.co/t/logstash-greedymultiline/85394/1 "2017-05-11T12:42:07Z")

</div>

getting this error when trying to start logstash

[2017-05-11T12:35:56,772][ERROR][logstash.filters.grok] Unknown setting 'pattern\_definitions' for grok  
[2017-05-11T12:35:56,795][ERROR][logstash.agent] Cannot create pipeline {:reason=\>"Something is wrong with your configuration."}

using the example from

[https://www.elastic.co/guide/en/logstash/5.4/logstash-config-for-filebeat-modules.html#parsing-system](https://www.elastic.co/guide/en/logstash/5.4/logstash-config-for-filebeat-modules.html#parsing-system)

I think its this that is causing the problem

pattern\_definitions =\> {  
"GREEDYMULTILINE"=\> "(.|\n)\*"  
}

any idea where I can get the pattern for GREEDYMULTILINE, I seem to be missing it on Debian

---

<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 11, 2017, 12:59pm UTC](https://discuss.elastic.co/t/logstash-greedymultiline/85394/2 "2017-05-11T12:59:27Z")

</div>

The `pattern_definitions` grok option is only available in recent versions of the grok filter. Try updating it. Otherwise you can put the pattern in a pattern file.

---

<div class="post-metadata">

**Author:** ![bogomop](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bogomop](https://discuss.elastic.co/u/bogomop)\
**Post date:** [May 11, 2017, 1:24pm UTC](https://discuss.elastic.co/t/logstash-greedymultiline/85394/3 "2017-05-11T13:24:01Z")

</div>

thanks for that. I did the following and it start ok now

cd /usr/share/logstash/bin/  
./logstash-plugin update logstash-filter-grok

---

<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:** [June 8, 2017, 1:38pm UTC](https://discuss.elastic.co/t/logstash-greedymultiline/85394/4 "2017-06-08T13:38:07Z")

</div>

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