# Configure file beat not to line by line

**URL:** <https://discuss.elastic.co/t/configure-file-beat-not-to-line-by-line/149292>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 20, 2018, 1:00pm UTC](https://discuss.elastic.co/t/configure-file-beat-not-to-line-by-line/149292 "2018-09-20T13:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolecharles\_job](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolecharles_job/32/42674_2.png) [@wolecharles\_job](https://discuss.elastic.co/u/wolecharles_job)\
**Post date:** [September 20, 2018, 1:00pm UTC](https://discuss.elastic.co/t/configure-file-beat-not-to-line-by-line/149292/1 "2018-09-20T13:00:50Z")

</div>

We have a situation where our machine logs based on user input..A user clicks a button,it logs and click another it logs to another line.So say a user click 5 times ..we have 5 line logs..I know filebeat read line by line and keeps an offset of the last line it read.The question is how to configure not to read line by line and not send the event to Logstash. But should read the lines when the regex pattern is found..  
Would value an honest answer if filebeat can do that.Or this any other tool that can be used for this

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 25, 2018, 5:49am UTC](https://discuss.elastic.co/t/configure-file-beat-not-to-line-by-line/149292/2 "2018-09-25T05:49:48Z")

</div>

I wonder if you could use multiline here in some way? How do you know it's the last time the user wrote a log line and the event should be sent?

---

<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:** [October 23, 2018, 5:49am UTC](https://discuss.elastic.co/t/configure-file-beat-not-to-line-by-line/149292/3 "2018-10-23T05:49:55Z")

</div>

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