# Matching a word with filebeat multiline

**URL:** <https://discuss.elastic.co/t/matching-a-word-with-filebeat-multiline/62417>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 6, 2016, 5:55pm UTC](https://discuss.elastic.co/t/matching-a-word-with-filebeat-multiline/62417 "2016-10-06T17:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![latiperneni](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@latiperneni](https://discuss.elastic.co/u/latiperneni)\
**Post date:** [October 6, 2016, 5:55pm UTC](https://discuss.elastic.co/t/matching-a-word-with-filebeat-multiline/62417/1 "2016-10-06T17:55:32Z")

</div>

I am using Filebeat multiline pattern in filebeat.yml that is taking its input from a single file that has the following line indicating the start of a request

2016-10-06 09:40:01.775 DEBUG 10454 --- [XNIO-2 task-9] c.a.a.s.abc.efgh.server: requestStartIdentifier: Identifier

filebeat.yml

multiline:  
pattern: 'Identifier$'  
negate: false  
match: after

I use the above config to match 'Identifier ' in the line . can anyone please suggest me the pattern to select whole string in the line that ends with Identifier .

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [October 6, 2016, 9:11pm UTC](https://discuss.elastic.co/t/matching-a-word-with-filebeat-multiline/62417/2 "2016-10-06T21:11:19Z")

</div>

Can you post a longer portion of the log file and how you want it grouped together. It's not clear to me what the requirement is. Thanks.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [October 7, 2016, 12:07pm UTC](https://discuss.elastic.co/t/matching-a-word-with-filebeat-multiline/62417/3 "2016-10-07T12:07:39Z")

</div>

Looks like a duplicate of [http://stackoverflow.com/a/39899056/503798](http://stackoverflow.com/a/39899056/503798) which has a working answer.

---

<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 27, 2016, 5:55pm UTC](https://discuss.elastic.co/t/matching-a-word-with-filebeat-multiline/62417/4 "2016-10-27T17:55:39Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
