# Log file tailing | Logstash Configuration

**URL:** <https://discuss.elastic.co/t/log-file-tailing-logstash-configuration/73312>\
**Category:** Logstash\
**Created:** [January 31, 2017, 5:05am UTC](https://discuss.elastic.co/t/log-file-tailing-logstash-configuration/73312 "2017-01-31T05:05:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Joseph](https://discuss.elastic.co/u/Joseph)\
**Post date:** [January 31, 2017, 5:05am UTC](https://discuss.elastic.co/t/log-file-tailing-logstash-configuration/73312/1 "2017-01-31T05:05:21Z")

</div>

Hi,

I have a local log file which is updated constantly. I have the following input filter in place:

file  
{  
path =\> ["/home/joseph/Desktop/audit.log"]  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
exclude =\> "\*.gz"  
}

However, since I set the start\_position to beginning, the entire file is read each time the file is updated. Is it possible for me to configure logstash to only ship the new logs ( by tailing) to Elasticsearch?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 31, 2017, 6:12am UTC](https://discuss.elastic.co/t/log-file-tailing-logstash-configuration/73312/2 "2017-01-31T06:12:21Z")

</div>

> [@Joseph](#):
>
> sincedb\_path =\> "/dev/null"

That is why 🙂

---

<div class="post-metadata">

**Author:** ![Joseph](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Joseph](https://discuss.elastic.co/u/Joseph)\
**Post date:** [January 31, 2017, 6:48am UTC](https://discuss.elastic.co/t/log-file-tailing-logstash-configuration/73312/3 "2017-01-31T06:48:19Z")

</div>

My bad!

Thank you!

I assume it should work if I remove that line. 🙂

---

<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:** [February 28, 2017, 6:48am UTC](https://discuss.elastic.co/t/log-file-tailing-logstash-configuration/73312/4 "2017-02-28T06:48:44Z")

</div>

Closed on February 28, 2017, 6:48am UTC

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