# Logstash elasticsearch input plugin

**URL:** <https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin/97700>\
**Category:** Logstash\
**Created:** [August 21, 2017, 2:53am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin/97700 "2017-08-21T02:53:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![infamous](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@infamous](https://discuss.elastic.co/u/infamous)\
**Post date:** [August 21, 2017, 2:53am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin/97700/1 "2017-08-21T02:53:37Z")

</div>

Hi all,

I am wondering if there is a way to have the elasticsearch input filter search multiple times instead of once. Right now I am trying to use the filter to watch for changes a certain index and (ideally) have the input activate each time there is a new event in the index.

```
input {
	elasticsearch {
		hosts => ["localhost:9200"]
		index => "final-waitingactivitylogs"
		scroll => "1m"
	}
}

```

Right now it seems to only run once on logstash start. Can I have it so it runs on an interval or all the time?

Thanks

---

<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:** [August 21, 2017, 5:52am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin/97700/2 "2017-08-21T05:52:19Z")

</div>

There's not, there is a request for it here if you'd like to upvote it [https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/65](https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/65)

---

<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:** [September 18, 2017, 5:52am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-plugin/97700/3 "2017-09-18T05:52:38Z")

</div>

Closed on September 18, 2017, 5:52am UTC

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