# Get only new lines from file log

**URL:** <https://discuss.elastic.co/t/get-only-new-lines-from-file-log/171205>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 6, 2019, 9:07pm UTC](https://discuss.elastic.co/t/get-only-new-lines-from-file-log/171205 "2019-03-06T21:07:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Welton\_Leao\_Machado](https://avatars.discourse-cdn.com/v4/letter/w/c4cdca/32.png) [@Welton\_Leao\_Machado](https://discuss.elastic.co/u/Welton_Leao_Machado)\
**Post date:** [March 6, 2019, 9:07pm UTC](https://discuss.elastic.co/t/get-only-new-lines-from-file-log/171205/1 "2019-03-06T21:07:54Z")

</div>

Hi guys.

I'll catch a new log to monitor but i want get only new lines from file log because the log file is not rotary and i can ignore the past this file.

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [March 7, 2019, 3:12pm UTC](https://discuss.elastic.co/t/get-only-new-lines-from-file-log/171205/2 "2019-03-07T15:12:13Z")

</div>

Hello @Welton_Leao_Machado, there is an option in the log input to start from the [end of the file](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#_literal_tail_files_literal), you might want to remove your registry in `data/registry` so it start all files at the end.

---

<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:** [April 4, 2019, 3:12pm UTC](https://discuss.elastic.co/t/get-only-new-lines-from-file-log/171205/3 "2019-04-04T15:12:16Z")

</div>

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