# Logstash-input-file read all txt data

**URL:** <https://discuss.elastic.co/t/logstash-input-file-read-all-txt-data/254845>\
**Category:** Logstash\
**Created:** [November 10, 2020, 3:59am UTC](https://discuss.elastic.co/t/logstash-input-file-read-all-txt-data/254845 "2020-11-10T03:59:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoping1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaoping1993/32/77996_2.png) [@xiaoping1993](https://discuss.elastic.co/u/xiaoping1993)\
**Post date:** [November 10, 2020, 3:59am UTC](https://discuss.elastic.co/t/logstash-input-file-read-all-txt-data/254845/1 "2020-11-10T03:59:10Z")

</div>

I want to read all txt data,so I set configuration:  
codec =\> multiline {  
pattern =\> "EOF"  
negate =\> true  
what =\> "previous"  
auto\_flush\_interval =\> 1  
charset=\>"GBK"  
}  
but I can get all txt data except the Last line of data  
so how can I do to get really all the data

---

<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:** [December 8, 2020, 3:59am UTC](https://discuss.elastic.co/t/logstash-input-file-read-all-txt-data/254845/2 "2020-12-08T03:59:10Z")

</div>

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