# Streaming events using logstash

**URL:** <https://discuss.elastic.co/t/streaming-events-using-logstash/134825>\
**Category:** Logstash\
**Created:** [June 6, 2018, 2:20pm UTC](https://discuss.elastic.co/t/streaming-events-using-logstash/134825 "2018-06-06T14:20:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakash\_Punj](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@Prakash\_Punj](https://discuss.elastic.co/u/Prakash_Punj)\
**Post date:** [June 6, 2018, 2:20pm UTC](https://discuss.elastic.co/t/streaming-events-using-logstash/134825/1 "2018-06-06T14:20:10Z")

</div>

Hi ! ,  
I have question about streaming events to elastic search. For example say we have a file access.log which is continuously changes and in the logstash we have defined this file as an input.  
After I run logstash, it ingested access,log to the elasticsearch. Now if the file is keep updating can logstash keep looking at the access log for additional data ? what if logstash is being killed after ingestion and then if we restart logstash, it it going to pick up from where it stopped ?? How is this works ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 6, 2018, 6:58pm UTC](https://discuss.elastic.co/t/streaming-events-using-logstash/134825/2 "2018-06-06T18:58:48Z")

</div>

> Now if the file is keep updating can logstash keep looking at the access log for additional data ?

Yes, that's the default behavior.

> what if logstash is being killed after ingestion and then if we restart logstash, it it going to pick up from where it stopped ??

Yes, see [File input plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#_tracking_of_current_position_in_watched_files).

---

<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 4, 2018, 6:58pm UTC](https://discuss.elastic.co/t/streaming-events-using-logstash/134825/3 "2018-07-04T18:58:54Z")

</div>

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