# Filebeat can't fetch the noeol(no end-of-line) file

**URL:** <https://discuss.elastic.co/t/filebeat-cant-fetch-the-noeol-no-end-of-line-file/90579>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 23, 2017, 6:34am UTC](https://discuss.elastic.co/t/filebeat-cant-fetch-the-noeol-no-end-of-line-file/90579 "2017-06-23T06:34:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![huzhengkai](https://avatars.discourse-cdn.com/v4/letter/h/e8c25b/32.png) [@huzhengkai](https://discuss.elastic.co/u/huzhengkai)\
**Post date:** [June 23, 2017, 6:34am UTC](https://discuss.elastic.co/t/filebeat-cant-fetch-the-noeol-no-end-of-line-file/90579/1 "2017-06-23T06:34:17Z")

</div>

Forgive my poor English,I'm a chinese.I use the filebeat 5.2.0,our system is Linux 2.6.32-431.el6.x86\_64.My colleague keep generating many new files by the Spring.All those file have only one line of data(json).  
When vi those file,the file is marked as noeol.I use the filebeat fetch the file and sending the text to kafka,the registry file :  
[  
{  
"source": "/home/hadoop/baiRong/AccountChangeU/aaa.txt",  
"offset": 0,  
"FileStateOS": {  
"inode": 27187051,  
"device": 2053  
},  
"timestamp": "2017-06-23T11:00:10.615905605+08:00",  
"ttl": -1  
}  
]  
I vi a new file ,then fetch this file,the text can be sent to kafka,the registry file:  
[  
{  
"source": "/home/hadoop/baiRong/AccountChangeU/aaa.txt",  
"offset": 0,  
"FileStateOS": {  
"inode": 27187051,  
"device": 2053  
},  
"timestamp": "2017-06-23T11:00:10.615905605+08:00",  
"ttl": -2  
},  
{  
"source": "/home/hadoop/baiRong/AccountChangeU/a.txt",  
"offset": 13,  
"FileStateOS": {  
"inode": 27191424,  
"device": 2053  
},  
"timestamp": "2017-06-23T11:28:25.088876899+08:00",  
"ttl": -1  
}  
]

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [June 23, 2017, 10:23am UTC](https://discuss.elastic.co/t/filebeat-cant-fetch-the-noeol-no-end-of-line-file/90579/2 "2017-06-23T10:23:14Z")

</div>

filebeat splits events when it sees the line separator `\n`. With this one being missing, filebeat can not tell, if more content is to come or not. Can any of you add the final '\n' ? (e.g. echo \>\> )

---

<div class="post-metadata">

**Author:** ![huzhengkai](https://avatars.discourse-cdn.com/v4/letter/h/e8c25b/32.png) [@huzhengkai](https://discuss.elastic.co/u/huzhengkai)\
**Post date:** [June 24, 2017, 1:35pm UTC](https://discuss.elastic.co/t/filebeat-cant-fetch-the-noeol-no-end-of-line-file/90579/3 "2017-06-24T13:35:14Z")

</div>

Thanks for your replying.We have using flume in our product environment.I only want to try the filebeat.I think it will be better if the filebeat can solve this or print out the log.I use -d "\*", i can't see any relevant [log.It](http://log.It) will be rude to say that,thanks again and hope your company will do better.

---

<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 22, 2017, 1:35pm UTC](https://discuss.elastic.co/t/filebeat-cant-fetch-the-noeol-no-end-of-line-file/90579/4 "2017-07-22T13:35:24Z")

</div>

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