# Interval Setting in http\_poller is invalid

**URL:** <https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553>\
**Category:** Logstash\
**Created:** [February 7, 2019, 11:17pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553 "2019-02-07T23:17:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [February 7, 2019, 11:17pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/1 "2019-02-07T23:17:24Z")

</div>

I am trying to use http\_poller plugin to get data at 30 sec internval however its giving me an erorr ""The setting `interval` in plugin `http_poller` is obsolete and is no longer available. The interval options is obsolete." i am using "schedule =\> { cron =\> "\* \* \* \* \* UTC"}" but how do i set the interval ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 7, 2019, 11:32pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/2 "2019-02-07T23:32:02Z")

</div>

I cannot test it, but I believe that you want

```
schedule => { cron => "*/30 * * * * UTC"}
```

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 8, 2019, 8:11am UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/3 "2019-02-08T08:11:56Z")

</div>

The minimum you can do with cron is 1 min.  
\*/30 \* \* \* \* will run every 30 minutes..

I find this url always helpful with cron settings.  
`https://crontab.guru/#0/30_*_*_*_*`

---

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [February 8, 2019, 7:43pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/4 "2019-02-08T19:43:13Z")

</div>

That didnt seems to work either i tried schedule =\> { cron =\> "0,30 \* \* \* UTC"} but that gave me and error as well.

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 8, 2019, 7:49pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/5 "2019-02-08T19:49:37Z")

</div>

First off, that is a incorrect syntax, it should be 0/30 \* \* \* \* but then it will run every 30 minutes. Using cron you cannot poll faster then every minute.

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 8, 2019, 7:53pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/6 "2019-02-08T19:53:36Z")

</div>

Looking at the documents you can use

`{ "every" ⇒ "30s" }`

That should be supported [according to the documents.](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html#plugins-inputs-http_poller-schedule)

---

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [February 8, 2019, 8:16pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/7 "2019-02-08T20:16:17Z")

</div>

> [@Badger](#):
>
> schedule =\> { cron =\> "\*/30 \* \* \* \* UTC"}

0/30 came up as invalid as well

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 8, 2019, 8:50pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/8 "2019-02-08T20:50:25Z")

</div>

> [@Badger](#):
>
> "\*/30 \* \* \* \* UTC"

Yes indeed, I was wrong about that. However I have tested

```
schedule => { every => "30s" }

```

as pjanzen suggested and that does work.

---

<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:** [March 8, 2019, 8:50pm UTC](https://discuss.elastic.co/t/interval-setting-in-http-poller-is-invalid/167553/9 "2019-03-08T20:50:27Z")

</div>

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