# How to make logstash publish from a certain line number onwards of the input file

**URL:** <https://discuss.elastic.co/t/how-to-make-logstash-publish-from-a-certain-line-number-onwards-of-the-input-file/109727>\
**Category:** Logstash\
**Created:** [November 30, 2017, 10:20am UTC](https://discuss.elastic.co/t/how-to-make-logstash-publish-from-a-certain-line-number-onwards-of-the-input-file/109727 "2017-11-30T10:20:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasun\_Siyambalapitiy](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kasun\_Siyambalapitiy](https://discuss.elastic.co/u/Kasun_Siyambalapitiy)\
**Post date:** [November 30, 2017, 10:20am UTC](https://discuss.elastic.co/t/how-to-make-logstash-publish-from-a-certain-line-number-onwards-of-the-input-file/109727/1 "2017-11-30T10:20:23Z")

</div>

Hi all,

I am using `logstash` to publish events of a log file which logs are constantly getting appended. But I need `logstash` to publish events from a certain line number onwards (say from 100th line onwards). How do I achieve this?

Thanks.

---

<div class="post-metadata">

**Author:** ![Kasun\_Siyambalapitiy](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kasun\_Siyambalapitiy](https://discuss.elastic.co/u/Kasun_Siyambalapitiy)\
**Post date:** [December 4, 2017, 5:28am UTC](https://discuss.elastic.co/t/how-to-make-logstash-publish-from-a-certain-line-number-onwards-of-the-input-file/109727/2 "2017-12-04T05:28:40Z")

</div>

Hi all,

Kind reminder of the above issue. Is there any way we can achieve this?. Thanks in advance.

---

<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:** [January 1, 2018, 5:35am UTC](https://discuss.elastic.co/t/how-to-make-logstash-publish-from-a-certain-line-number-onwards-of-the-input-file/109727/3 "2018-01-01T05:35:31Z")

</div>

Closed on January 1, 2018, 5:35am UTC

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