# How to separate a log line by line

**URL:** https://discuss.elastic.co/t/how-to-separate-a-log-line-by-line/217232
**Category:** Beats
**Tags:** filebeat
**Created:** [January 30, 2020, 3:37pm UTC](https://discuss.elastic.co/t/how-to-separate-a-log-line-by-line/217232 "2020-01-30T15:37:36Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Bubunia\_Patra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bubunia_patra/32/44338_2.png) [@Bubunia\_Patra](https://discuss.elastic.co/u/Bubunia_Patra)
#### Post date: [February 6, 2020, 4:21am UTC](https://discuss.elastic.co/t/how-to-separate-a-log-line-by-line/217232/4 "2020-02-06T04:21:39Z")

</div>

Hi Ben,

Would you mind providing the filebeat.yml file? We are also facing the similar issue. After excluding the multi-line parameter the lines were not coming in the log. But the problem is if we add the multiline parameter in filebeat.yml we should be getting the logs but it should be coming in single line rather than multiple line. Need your help. Any help would be appreciated.

> [@Filebeat parsing issue](https://discuss.elastic.co/t/filebeat-parsing-issue/217914):
>
> Hi, I am trying to fix a issue in the filebeat configuration file where it adds newline to the parsed logs and forwards to graylog/ES. I want the log to be in single line rather than multiple line. Even if the file(access.log) contains multi-line as the input I want to make the file to be single line removing any carriage return and merge to a single line. I am not sure how the multi-line lines are matching in this case as the regex is checking the | and there is no input with date format? Can …

Regards  
Pradeep

---

_[View the full topic](https://discuss.elastic.co/t/how-to-separate-a-log-line-by-line/217232)._
