# Single line text data is truncated

**URL:** <https://discuss.elastic.co/t/single-line-text-data-is-truncated/350725>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 10, 2024, 10:01am UTC](https://discuss.elastic.co/t/single-line-text-data-is-truncated/350725 "2024-01-10T10:01:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin1811](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@kevin1811](https://discuss.elastic.co/u/kevin1811)\
**Post date:** [January 10, 2024, 10:01am UTC](https://discuss.elastic.co/t/single-line-text-data-is-truncated/350725/1 "2024-01-10T10:01:27Z")

</div>

When there are multiple line breaks at the end of my file, the last valid complete text message will be truncated based on the number of line breaks at the end of the text  
**txt file**  
{"b":"001T230197002","t":"E0040150ED4E9785","p":"春楮径04排6架1层","d":"2024-01-10 16:55:46","s":"off","c":"2024-01-10 16:55:47"}  
{"b":"001T230197002","t":"E0040150ED4E9785","p":"春楮径04排6架1层","d":"2024-01-10 16:55:46","s":"off","c":"2024-01-10 16:55:47"}  
{"b":"001T230197002","t":"E0040150ED4E9785","p":"春楮径04排6架1层","d":"2024-01-10 16:55:46","s":"off","c":"2024-01-10 16:55:47"}

**kafka message** ’  
{  
"@timestamp": "2024-01-10T09:59:08.542Z",  
"@metadata": {  
"beat": "filebeat",  
"type": "\_doc",  
"version": "8.11.3"  
},  
"message": ":"001T230197002","t":"E0040150ED4E9785","p":"春楮径04排6架1层","d":"2024-01-10 16:55:46","s":"off","c":"2024-01-10 16:55:47"}",  
"input": {  
"type": "filestream"  
},  
"fields": {  
"code": "haiheng"  
},  
"agent": {  
"name": "LAPTOP-QSUR4HJI",  
"type": "filebeat",  
"version": "8.11.3",  
"ephemeral\_id": "6d8df0e0-0648-4192-a50c-cfbe51ca89ee",  
"id": "3aca8496-bbf4-4f1e-95af-2439bfd7c7fc"  
},  
"ecs": {  
"version": "8.0.0"  
},  
"host": {  
"name": "LAPTOP-QSUR4HJI"  
},  
"log": {  
"offset": 415,  
"file": {  
"idxlo": "330994",  
"vol": "3973286738",  
"path": "C:\Users\wh\Desktop\position\B-2024-01-05.txt",  
"idxhi": "11993088"  
}  
}  
}  
The message section has been truncated by 3 digits, which is the number of 3 line breaks

---

<div class="post-metadata">

**Author:** ![strawgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strawgate/32/131008_2.png) [@strawgate](https://discuss.elastic.co/u/strawgate)\
**Post date:** [January 23, 2024, 2:59am UTC](https://discuss.elastic.co/t/single-line-text-data-is-truncated/350725/2 "2024-01-23T02:59:04Z")

</div>

Can you share your filebeat.yml?

It looks like that's been truncated by 4 digits?

---

<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:** [February 20, 2024, 4:59am UTC](https://discuss.elastic.co/t/single-line-text-data-is-truncated/350725/3 "2024-02-20T04:59:49Z")

</div>

Closed on February 20, 2024, 4:59am UTC

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