# Csv output: add new line

**URL:** <https://discuss.elastic.co/t/csv-output-add-new-line/236265>\
**Category:** Logstash\
**Created:** [June 9, 2020, 5:31am UTC](https://discuss.elastic.co/t/csv-output-add-new-line/236265 "2020-06-09T05:31:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdra](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cdra](https://discuss.elastic.co/u/cdra)\
**Post date:** [June 9, 2020, 5:31am UTC](https://discuss.elastic.co/t/csv-output-add-new-line/236265/1 "2020-06-09T05:31:17Z")

</div>

My config file is:

if [type] == "syslog"  
{  
csv {  
fields =\> ["Dia","Hora","Evento","Usuario","Politica","SesionID","Web","Enviado\_Bytes","Recibido\_Bytes","Origen","Destino"]  
path =\> "D:\NavegacionUsuarios\Navegacion-%{+YYYY-MM-dd}.txt"  
csv\_options =\> {"col\_sep" =\> "," "row\_sep" =\> "\n"}  
}  
stdout { codec =\> rubydebug }  
}

But the output contains only 1 line. I need a new line for each record. We use Windows and logstash-7.7.1. If i remove cvs\_options, it doesn't solve it.

If I open csv file with notepad, i can't see return lines, but If I open it with other editors, i can see return lines. I'd like to see these returns lines with notepad.

With logstash-6.2.4 it works fine.

---

<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 7, 2020, 5:34am UTC](https://discuss.elastic.co/t/csv-output-add-new-line/236265/2 "2020-07-07T05:34:20Z")

</div>

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