# Custom GROK Pattern for XML Text file

**URL:** <https://discuss.elastic.co/t/custom-grok-pattern-for-xml-text-file/105576>\
**Category:** Logstash\
**Created:** [October 27, 2017, 1:19pm UTC](https://discuss.elastic.co/t/custom-grok-pattern-for-xml-text-file/105576 "2017-10-27T13:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjith](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@ranjith](https://discuss.elastic.co/u/ranjith)\
**Post date:** [October 27, 2017, 1:19pm UTC](https://discuss.elastic.co/t/custom-grok-pattern-for-xml-text-file/105576/1 "2017-10-27T13:19:46Z")

</div>

Hi all,

I am new to grok in logstash. I am trying to grok the following text file .

> ac92ec61-5a5c-df11-beff-001ec95274b6,8b2135d0-ba04-4473-8398-3e0e1045c7c4Warranty754dcbf6-af93-47be-a6d3-8468fcf9ef8c1160WARJACK08M001truetruetruef036442b-371f-4d91-a1ac-caaf22d757db

I want to get the Pkey coming after "ListConfigLogic" . Please guide me how to grok it

Thanks in advance

---

<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:** [October 27, 2017, 2:03pm UTC](https://discuss.elastic.co/t/custom-grok-pattern-for-xml-text-file/105576/2 "2017-10-27T14:03:23Z")

</div>

Duplicate of [Grok Pattern for text file](https://discuss.elastic.co/t/grok-pattern-for-text-file/105567).

---

<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:** [November 24, 2017, 2:03pm UTC](https://discuss.elastic.co/t/custom-grok-pattern-for-xml-text-file/105576/3 "2017-11-24T14:03:31Z")

</div>

Closed on November 24, 2017, 2:03pm UTC

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