# Logstash input elasticsearch - Scheduling

**URL:** <https://discuss.elastic.co/t/logstash-input-elasticsearch-scheduling/128242>\
**Category:** Logstash\
**Created:** [April 16, 2018, 7:19pm UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch-scheduling/128242 "2018-04-16T19:19:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [April 16, 2018, 7:19pm UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch-scheduling/128242/1 "2018-04-16T19:19:47Z")

</div>

I'm trying to follow [Elasticsearch input plugin | Logstash Reference (Scheduling)](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html#_scheduling).

Let's say, following is part of my input (elasticsearch):

```
input {
  elasticsearch {
    hosts => "localhost"
    query => '{ "query": { "match": { "statuscode": 200 } }, "sort": ["_doc"] }'
  }
}

```

where would I insert:

> 0 \* \* \* \*

Please advise.

---

<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:** [April 16, 2018, 8:05pm UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch-scheduling/128242/2 "2018-04-16T20:05:10Z")

</div>

In the `schedule` option, at the same level as `hosts`.

---

<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 14, 2018, 8:05pm UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch-scheduling/128242/3 "2018-05-14T20:05:26Z")

</div>

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