# How to transfer whole file instead of line by line.?

**URL:** <https://discuss.elastic.co/t/how-to-transfer-whole-file-instead-of-line-by-line/45965>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 31, 2016, 3:36pm UTC](https://discuss.elastic.co/t/how-to-transfer-whole-file-instead-of-line-by-line/45965 "2016-03-31T15:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdaruna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sdaruna/32/7289_2.png) [@sdaruna](https://discuss.elastic.co/u/sdaruna)\
**Post date:** [March 31, 2016, 3:36pm UTC](https://discuss.elastic.co/t/how-to-transfer-whole-file-instead-of-line-by-line/45965/1 "2016-03-31T15:36:54Z")

</div>

Hi,

I configured file beats to look into a folder and push the data to logstash.

How to use multiline to move whole file once.?

---

<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:** [March 31, 2016, 9:37pm UTC](https://discuss.elastic.co/t/how-to-transfer-whole-file-instead-of-line-by-line/45965/2 "2016-03-31T21:37:04Z")

</div>

it sounds more like missuse. If multiline is used like this, the complete file will be buffered in memory and truncated to configured size limits (I think 10MB by default).

Creating a regex that always matches a line '.\*' might do the trick. But then 1 file == 1 event in logstash.

---

<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 5, 2017, 9:54pm UTC](https://discuss.elastic.co/t/how-to-transfer-whole-file-instead-of-line-by-line/45965/3 "2017-07-05T21:54:00Z")

</div>


