# Logstash multiline CSV

**URL:** <https://discuss.elastic.co/t/logstash-multiline-csv/307114>\
**Category:** Logstash\
**Created:** [June 14, 2022, 8:24am UTC](https://discuss.elastic.co/t/logstash-multiline-csv/307114 "2022-06-14T08:24:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tartaarsap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tartaarsap/32/99611_2.png) [@tartaarsap](https://discuss.elastic.co/u/tartaarsap)\
**Post date:** [June 14, 2022, 8:24am UTC](https://discuss.elastic.co/t/logstash-multiline-csv/307114/1 "2022-06-14T08:24:43Z")

</div>

Hi,

I recently switched from Filebeat to Logstash, but my multiline config pattern is not working anymore.

My config file:

```auto
input
{
  file
  {
    path => ["D:/temp/*test*.csv"]
    start_position => "beginning"
	
	codec => multiline
		{
			pattern => "^\t|^Take the following|^\","
			negate => "false"
			what => "next"
		}
  }
}

```

The CSV file with 2 entries:

```auto
"Name","Description","WhenChanged"
".","Take the following actions:
	Set audit severity level to 'Do not audit'
	and Blind carbon copy(Bcc) the message to 'temp@temp'
","8/12/2021 1:46:46 AM"
"geheim","If the message:
	Includes these words in the message subject or body: 'temp1' or 'temp2' or 'temp3'
Take the following actions:
	Set audit severity level to 'Do not audit'
	and Blind carbon copy(Bcc) the message to 'temp@temp.com'
","1/18/2022 1:56:15 AM"

```

My goal is to get the 3 comma separated fields. What is the best way to archive this?

---

<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:** [July 12, 2022, 8:25am UTC](https://discuss.elastic.co/t/logstash-multiline-csv/307114/2 "2022-07-12T08:25:26Z")

</div>

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