# SOLVED - Multi Line Help

**URL:** <https://discuss.elastic.co/t/solved-multi-line-help/175741>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 7, 2019, 11:42pm UTC](https://discuss.elastic.co/t/solved-multi-line-help/175741 "2019-04-07T23:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_Taylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wayne_taylor/32/45984_2.png) [@Wayne\_Taylor](https://discuss.elastic.co/u/Wayne_Taylor)\
**Post date:** [April 7, 2019, 11:42pm UTC](https://discuss.elastic.co/t/solved-multi-line-help/175741/1 "2019-04-07T23:42:33Z")

</div>

Team,

I have made good progress using the following pattern on a java log for filebeat as the configuration:

multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'  
multiline.negate: true  
multiline.match: after

Most of the app lines process correctly as a multiline. However, the following line which has new lines in it does. Any help/ideas welcome..

```
2019-04-03T19:55:28.818|INFO|ip-10-246-1-253.ec2.internal|[apps,d6d1329cd08b2edd,b8528f33d3928ba9|com.gogoair.core.filter.RequestResponseLoggingFilter.doFilter:115|Id:reidpat39_1554321328671|Thread:http-apr-8080-exec-8|Outgoing REST Response -
[TRANSACTION ID: 61ada2c4-f493-41d0-be57-2e035dd1315a-d58a1a9c-e9db-421f-ab4e-cb89f488cf8d]]
[REQUEST URI :/v1/customermanager/user/username]
[HTTP METHOD:GET]
[REQUEST PARAMETERS:{dataTypes=PERSONAL}]
[IPADDRESS :10.246.1.253, RemoteAddress :10.246.8.104, RemoteHost :10.246.8.104]
[RESPONSE BODY: {"trackingId":"id","statusCode":"200","statusMsg":"SUCCESS","userName":"username","personalData":{"emailAddress":"noreply@gmail.com","firstName":"JOE","lastName":"BLOGGS","title":"-","addressLine1":"1 YOU WISH","addressLine3":"HELLO","addressLine4":"IL","addressLine5":"US","postalCode":"11111","addressNumber":0,"updatedDate":"1899-01-01T00:00:00.000Z"}}]

```

Currently this comes through as different lines e.g.

1. 

`[REQUEST PARAMETERS:{dataTypes=PERSONAL}]`

1. 

`[HTTP METHOD:GET]`

1. 

`2019-04-03T19:55:28.818|INFO|ip-10-246-1-253.ec2.internal|[apps,d6d1329cd08b2edd,b8528f33d3928ba9|com.gogoair.core.filter.RequestResponseLoggingFilter.doFilter:115|Id:reidpat39_1554321328671|Thread:http-apr-8080-exec-8|Outgoing REST Response -`

1. 

`[REQUEST URI :/v1/customermanager/user/username]`

1. 

`[IPADDRESS :10.246.1.253, RemoteAddress :10.246.8.104, RemoteHost :10.246.8.104]`

1. 

`[TRANSACTION ID: 61ada2c4-f493-41d0-be57-2e035dd1315a-d58a1a9c-e9db-421f-ab4e-cb89f488cf8d]]`

1. 

`[RESPONSE BODY: {"trackingId":"id","statusCode":"200","statusMsg":"SUCCESS","userName":"username","personalData":{"emailAddress":"noreply@gmail.com","firstName":"JOE","lastName":"BLOGGS","title":"-","addressLine1":"1 YOU WISH","addressLine3":"HELLO","addressLine4":"IL","addressLine5":"US","postalCode":"11111","addressNumber":0,"updatedDate":"1899-01-01T00:00:00.000Z"}}]`

Objective is have this as one log line so later on grok can be applied.

Any help, ideas welcome.

Thanks

---

<div class="post-metadata">

**Author:** ![Wayne\_Taylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wayne_taylor/32/45984_2.png) [@Wayne\_Taylor](https://discuss.elastic.co/u/Wayne_Taylor)\
**Post date:** [April 16, 2019, 2:39pm UTC](https://discuss.elastic.co/t/solved-multi-line-help/175741/2 "2019-04-16T14:39:24Z")

</div>

This issue is solved. When you use config management for files vs log prospects i found that you needed to put the multi-line value in the config file for applicable item vs in the main filebeat.yml file.

---

<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:** [May 14, 2019, 2:39pm UTC](https://discuss.elastic.co/t/solved-multi-line-help/175741/3 "2019-05-14T14:39:35Z")

</div>

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