# Continous get new content from an index or query?

**URL:** <https://discuss.elastic.co/t/continous-get-new-content-from-an-index-or-query/71654>\
**Category:** Elasticsearch\
**Created:** [January 15, 2017, 4:53pm UTC](https://discuss.elastic.co/t/continous-get-new-content-from-an-index-or-query/71654 "2017-01-15T16:53:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cscsabai](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cscsabai](https://discuss.elastic.co/u/cscsabai)\
**Post date:** [January 15, 2017, 4:53pm UTC](https://discuss.elastic.co/t/continous-get-new-content-from-an-index-or-query/71654/1 "2017-01-15T16:53:16Z")

</div>

Is there any solution (special query or library, etc) to continous get new documents) as it created from an index? I know I can get new elements frequently with a crontab like polling, but i'm looking for a near real-time solution.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [January 18, 2017, 12:05pm UTC](https://discuss.elastic.co/t/continous-get-new-content-from-an-index-or-query/71654/2 "2017-01-18T12:05:16Z")

</div>

Elasticsearch exposes it's queries through a REST API - so whatever constraints apply to that also apply to Elasticsearch.

If you don't want to save yourself some work, you might find [X-Pack Alerting](https://www.elastic.co/products/x-pack/alerting) helpful for your use-case.

Hope this helps,  
Isabel

---

<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:** [February 15, 2017, 12:05pm UTC](https://discuss.elastic.co/t/continous-get-new-content-from-an-index-or-query/71654/3 "2017-02-15T12:05:41Z")

</div>

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