# Logstash multiline problem

**URL:** <https://discuss.elastic.co/t/logstash-multiline-problem/86763>\
**Category:** Logstash\
**Created:** [May 23, 2017, 6:27am UTC](https://discuss.elastic.co/t/logstash-multiline-problem/86763 "2017-05-23T06:27:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JIELOGAN](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@JIELOGAN](https://discuss.elastic.co/u/JIELOGAN)\
**Post date:** [May 23, 2017, 6:27am UTC](https://discuss.elastic.co/t/logstash-multiline-problem/86763/1 "2017-05-23T06:27:56Z")

</div>

hi everyone,i have lots of logs need to be structured,for clear ,there is my data::  
#########  
ABC  
123  
abc  
PPP  
ZZZZZ  
#########  
I want to: "ABCabcZZZZZ" , i tried the multiline codec and my pattern is "^A|^a|^Z", but i failed to get what i want.  
please,thx

---

<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 20, 2017, 6:28am UTC](https://discuss.elastic.co/t/logstash-multiline-problem/86763/2 "2017-06-20T06:28:33Z")

</div>

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