# How to combine the complete data in a csv/txt file in to a single column in message field

**URL:** <https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550>\
**Category:** Logstash\
**Created:** [February 17, 2021, 10:42am UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550 "2021-02-17T10:42:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhilesh](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nikhilesh](https://discuss.elastic.co/u/nikhilesh)\
**Post date:** [February 17, 2021, 10:42am UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550/1 "2021-02-17T10:42:24Z")

</div>

Hi all,

I have a below kind of data in the file of csv format. when I try to pull the logs to kibana. its showing as a multiple lines in the kibana console(PFA)

I want the complete data in the file to come as a single line in the kibana under the message field. can any please help on this how to achieve.

**Data in the log file:**  
objectClass: top  
objectClass: ds-monitor  
objectClass: ds-monitor-base-dn  
ds-mon-base-dn: cn=Directory Manager  
ds-mon-base-dn-entry-count: 1

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c9b068b855bd79c04b8298069a808979e8f401fe.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 17, 2021, 4:54pm UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550/2 "2021-02-17T16:54:28Z")

</div>

If you are ingesting the data using logstash then you may be able to do it with a multiline codec.

---

<div class="post-metadata">

**Author:** ![nikhilesh](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nikhilesh](https://discuss.elastic.co/u/nikhilesh)\
**Post date:** [February 19, 2021, 7:13am UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550/3 "2021-02-19T07:13:32Z")

</div>

yes, m using logstash. can i get the syntax of the multiline codec please?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 19, 2021, 5:32pm UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550/4 "2021-02-19T17:32:28Z")

</div>

The [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-multiline.html) explains the syntax. Also, there are many examples in this forum.

---

<div class="post-metadata">

**Author:** ![nikhilesh](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nikhilesh](https://discuss.elastic.co/u/nikhilesh)\
**Post date:** [February 21, 2021, 2:16pm UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550/5 "2021-02-21T14:16:07Z")

</div>

Thanks Badger

instead of single event, can this possible to get the complete data of a file in to a multiple columns of a single entry line

Thanks  
Nikhilesh Gade

---

<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 21, 2021, 2:16pm UTC](https://discuss.elastic.co/t/how-to-combine-the-complete-data-in-a-csv-txt-file-in-to-a-single-column-in-message-field/264550/6 "2021-03-21T14:16:56Z")

</div>

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