# Filebeat multiline config problem

**URL:** <https://discuss.elastic.co/t/filebeat-multiline-config-problem/119357>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 11, 2018, 2:08am UTC](https://discuss.elastic.co/t/filebeat-multiline-config-problem/119357 "2018-02-11T02:08:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![9AutumnRain](https://avatars.discourse-cdn.com/v4/letter/9/e19adc/32.png) [@9AutumnRain](https://discuss.elastic.co/u/9AutumnRain)\
**Post date:** [February 11, 2018, 2:08am UTC](https://discuss.elastic.co/t/filebeat-multiline-config-problem/119357/1 "2018-02-11T02:08:33Z")

</div>

hey guys:  
I have logs format like this:

```auto
*****************
line a
line b
*****************
line c
line d
*****************
line e
line f

```

and I want to combine the lines bewteen "\*\*\*" lines and exclude "\*\*\*" lines themself,like this:

```auto
"line a
line b"

"line c
line d"

"line e
line f"

```

how should I configure filebeat? thanks.

---

<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:** [February 12, 2018, 10:46am UTC](https://discuss.elastic.co/t/filebeat-multiline-config-problem/119357/2 "2018-02-12T10:46:56Z")

</div>

You can combine them together with something like this:

```auto
multiline.pattern: ' ****'
multiline.negate: true
multiline.match: after

```

But that's going to include the "\*\*\*\*" lines. You can, however, post-process the messages in the Elasticsearch [Ingest Node](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html) or Logstash to remove the ` **** ` line.

---

<div class="post-metadata">

**Author:** ![9AutumnRain](https://avatars.discourse-cdn.com/v4/letter/9/e19adc/32.png) [@9AutumnRain](https://discuss.elastic.co/u/9AutumnRain)\
**Post date:** [February 13, 2018, 12:59am UTC](https://discuss.elastic.co/t/filebeat-multiline-config-problem/119357/3 "2018-02-13T00:59:30Z")

</div>

Thank you.I successfully tried remove them with Logstash.

---

<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:** [March 13, 2018, 12:59am UTC](https://discuss.elastic.co/t/filebeat-multiline-config-problem/119357/4 "2018-03-13T00:59:42Z")

</div>

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