# Maintain state between polling intervals

**URL:** <https://discuss.elastic.co/t/maintain-state-between-polling-intervals/60420>\
**Category:** Logstash\
**Created:** [September 13, 2016, 7:41pm UTC](https://discuss.elastic.co/t/maintain-state-between-polling-intervals/60420 "2016-09-13T19:41:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbarak](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jbarak](https://discuss.elastic.co/u/jbarak)\
**Post date:** [September 13, 2016, 7:41pm UTC](https://discuss.elastic.co/t/maintain-state-between-polling-intervals/60420/1 "2016-09-13T19:41:50Z")

</div>

I am using the http\_poller input plugin to poll a rest api every n secs. I need to store a value from the response of the current interval and use it in the next interval. Is there anyway to store/maintain this information in LS?

---

<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:** [September 14, 2016, 1:09am UTC](https://discuss.elastic.co/t/maintain-state-between-polling-intervals/60420/2 "2016-09-14T01:09:45Z")

</div>

Like a session key or similar? No, but it'd be handy.

---

<div class="post-metadata">

**Author:** ![jbarak](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jbarak](https://discuss.elastic.co/u/jbarak)\
**Post date:** [September 14, 2016, 12:07pm UTC](https://discuss.elastic.co/t/maintain-state-between-polling-intervals/60420/3 "2016-09-14T12:07:25Z")

</div>

The rest api returns paged data which I am trying to ingest using logstash. Is there any plan to add anything like that in future releases ?

---

<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 6, 2017, 4:38am UTC](https://discuss.elastic.co/t/maintain-state-between-polling-intervals/60420/4 "2017-07-06T04:38:32Z")

</div>


