# Elasticsearch Input Plugin on Timer

**URL:** https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145
**Category:** Logstash
**Created:** [May 1, 2017, 11:29am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145 "2017-05-01T11:29:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![c.pentasuglia](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@c.pentasuglia](https://discuss.elastic.co/u/c.pentasuglia)
#### Post date: [May 1, 2017, 11:29am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145/1 "2017-05-01T11:29:44Z")

</div>

Is it possible to have the Elasticsearch input plugin fire on a timer? Ex. I would like it to fire once every hour. Or would I have to orchestrate this somehow outside of Logstash?

Thanks!

---

<div class="post-metadata">

### Author: ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)
#### Post date: [May 1, 2017, 10:20pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145/2 "2017-05-01T22:20:17Z")

</div>

What do you want to do during / after the timer fires?

---

<div class="post-metadata">

### Author: ![c.pentasuglia](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@c.pentasuglia](https://discuss.elastic.co/u/c.pentasuglia)
#### Post date: [May 2, 2017, 11:53am UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145/3 "2017-05-02T11:53:29Z")

</div>

Thanks for the response! I want to query ES using an aggregation search, and then place that aggregated data back into ES. Possibly event a different index that holds the aggregates. I'd like to do this once every hour.

I guess I struggle to see the flow of the ES input plugin now? When / how often does it typically run?

---

<div class="post-metadata">

### Author: ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)
#### Post date: [May 2, 2017, 3:51pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145/4 "2017-05-02T15:51:07Z")

</div>

The only way I can think of is to use a cron job / like applications to achieve this

[How to run the schedule every five minutes in Logstash 5.0?](https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222).

---

<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: [May 30, 2017, 3:53pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-on-timer/84145/5 "2017-05-30T15:53:11Z")

</div>

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