# How logstash read multiline data line by line

**URL:** <https://discuss.elastic.co/t/how-logstash-read-multiline-data-line-by-line/241498>\
**Category:** Logstash\
**Created:** [July 16, 2020, 3:58pm UTC](https://discuss.elastic.co/t/how-logstash-read-multiline-data-line-by-line/241498 "2020-07-16T15:58:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashish2](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ashish2](https://discuss.elastic.co/u/ashish2)\
**Post date:** [July 16, 2020, 3:58pm UTC](https://discuss.elastic.co/t/how-logstash-read-multiline-data-line-by-line/241498/1 "2020-07-16T15:58:53Z")

</div>

i am new to elk .am phasing some problem about logstash ,tell me that i can solve this problem with logstash or not?  
i have a csv file like this.

a: rajat  
b: 123,321a,543, 123a.......

a: ashish  
b: 878, 543, 321, 123b.......  
a: mohit  
b: 123,321a,543, 123a.......

so my csv file look like this .  
and this is my flag value that can be compare with each field with field b only.

flag1 : b=\> 123,123a  
flag2: b =\>321a  
flag3: b=\>878

so i compare my flag1 with rajat record like this

( 123,321a,543, 123a.......)== flag1  
add new field to file.  
c=\>X if not equal then add c=\>M  
next flag 1 value compare with 2nd record and if match then add filed value same like above mention.so like this we compre all flag value with all records how can possible with logstash. please give me the right way to do this  
........ with your regards....

---

<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:** [August 13, 2020, 3:58pm UTC](https://discuss.elastic.co/t/how-logstash-read-multiline-data-line-by-line/241498/2 "2020-08-13T15:58:54Z")

</div>

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