# Grok to match all instances

**URL:** <https://discuss.elastic.co/t/grok-to-match-all-instances/100887>\
**Category:** Logstash\
**Created:** [September 18, 2017, 2:36pm UTC](https://discuss.elastic.co/t/grok-to-match-all-instances/100887 "2017-09-18T14:36:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [September 18, 2017, 2:36pm UTC](https://discuss.elastic.co/t/grok-to-match-all-instances/100887/1 "2017-09-18T14:36:26Z")

</div>

When I have a large error message with lots of error Id's I would want to be able to add all those ID's to a new field, a new field used similarly to the tag field.

For example

```
ORA-12012: error on auto execute of job
ORA-20210: P8460.spool_demon_log Process Que ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ExceptionInInitializerError.
ORA-06512: at "Z_ERROR", line 51
ORA-06512: at "X_ERROR", line 8
ORA-06512: at "F80", line 391
ORA-06512: at "F86", line 400
ORA-06512: at line 1
```

---

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [September 19, 2017, 9:50am UTC](https://discuss.elastic.co/t/grok-to-match-all-instances/100887/2 "2017-09-19T09:50:27Z")

</div>

KV to the rescue!

```
kv { 
	field_split => " :\n"
	value_split => "-"

}
```

---

<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 17, 2017, 9:50am UTC](https://discuss.elastic.co/t/grok-to-match-all-instances/100887/3 "2017-10-17T09:50:41Z")

</div>

Closed on October 17, 2017, 9:50am UTC

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