# Help with the grok processor

**URL:** <https://discuss.elastic.co/t/help-with-the-grok-processor/139661>\
**Category:** Elasticsearch\
**Created:** [July 12, 2018, 3:33am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661 "2018-07-12T03:33:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsk](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vsk](https://discuss.elastic.co/u/vsk)\
**Post date:** [July 12, 2018, 3:33am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661/1 "2018-07-12T03:33:23Z")

</div>

The below code works well with grok debugger.. However when adding via., pipeline it fails.. what is the issue here ?  
{  
"description": "Extract information",  
"processors":[  
{  
"grok": {  
"field":"descr",  
"index\_name\_prefix":"test-grok",  
"patterns":"(?[^=]_)=(?._)"  
}  
}  
]

}

below is the error

"error": {  
"root\_cause": [  
{  
"type": "parse\_exception",  
"reason": "[patterns] property isn't a list, but of type [java.lang.String]",  
"header": {  
"processor\_type": "grok",  
"property\_name": "patterns"  
}  
}  
],  
appreciate the support.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 12, 2018, 3:39am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661/2 "2018-07-12T03:39:05Z")

</div>

Fails how? Can you post errors?

---

<div class="post-metadata">

**Author:** ![vsk](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vsk](https://discuss.elastic.co/u/vsk)\
**Post date:** [July 12, 2018, 3:41am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661/3 "2018-07-12T03:41:05Z")

</div>

updated the error above. thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 12, 2018, 3:52am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661/4 "2018-07-12T03:52:08Z")

</div>

That doesn't look like the right syntax, check out [https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html)

---

<div class="post-metadata">

**Author:** ![vsk](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vsk](https://discuss.elastic.co/u/vsk)\
**Post date:** [July 12, 2018, 4:20am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661/5 "2018-07-12T04:20:19Z")

</div>

the ingest pipeline is ok now..however the newly generated fields are not visible in kibana..

"processors":[  
{  
"grok": {  
"field":"descr",  
"patterns": ["%{n1}=%{value1}"],  
"pattern\_definitions" : {  
"n1" : "[^=]_",  
"value1" : "._"  
}  
}  
]  
}

---

<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:** [August 9, 2018, 4:20am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661/6 "2018-08-09T04:20:26Z")

</div>

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