# Custom logs multiline

**URL:** <https://discuss.elastic.co/t/custom-logs-multiline/295280>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [January 24, 2022, 8:11pm UTC](https://discuss.elastic.co/t/custom-logs-multiline/295280 "2022-01-24T20:11:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Requium](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/requium/32/98571_2.png) [@Requium](https://discuss.elastic.co/u/Requium)\
**Post date:** [January 24, 2022, 8:11pm UTC](https://discuss.elastic.co/t/custom-logs-multiline/295280/1 "2022-01-24T20:11:16Z")

</div>

Im trying to add multiline to the custom log integration configuration for elastic agent, i tryied the following way:

```auto
multiline.type: pattern
multiline.pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}'
multiline.negate: true
multiline.match: after
pipeline: logs-dotnet-pipeline

```

but nothing happens and i dont receive the logs, i guess that im putting wrong the multiline on the configuration yml for the custom log, but i cant find any documentation on how to configure the custom log configurations, when i put only the pipeline only it works like a charm but i need to identify and joint the logs with the multiline because i receive some logs of .net Exceptions that are multilined

---

<div class="post-metadata">

**Author:** ![Requium](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/requium/32/98571_2.png) [@Requium](https://discuss.elastic.co/u/Requium)\
**Post date:** [February 4, 2022, 9:10am UTC](https://discuss.elastic.co/t/custom-logs-multiline/295280/2 "2022-02-04T09:10:19Z")

</div>

Nevermind it was a problem with updating the policy on the agent, it works as expected with the above config. Thanks

---

<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 4, 2022, 11:11am UTC](https://discuss.elastic.co/t/custom-logs-multiline/295280/3 "2022-03-04T11:11:02Z")

</div>

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