# Automate ES query

**URL:** <https://discuss.elastic.co/t/automate-es-query/216241>\
**Category:** Kibana\
**Created:** [January 23, 2020, 12:34pm UTC](https://discuss.elastic.co/t/automate-es-query/216241 "2020-01-23T12:34:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paridhikochar](https://avatars.discourse-cdn.com/v4/letter/p/f19dbf/32.png) [@paridhikochar](https://discuss.elastic.co/u/paridhikochar)\
**Post date:** [January 23, 2020, 12:34pm UTC](https://discuss.elastic.co/t/automate-es-query/216241/1 "2020-01-23T12:34:19Z")

</div>

Hi

I want to automate ES queries and run them at regular intervals in Kibana. How this can be done? I have xpack Kibana license.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [January 23, 2020, 7:12pm UTC](https://discuss.elastic.co/t/automate-es-query/216241/2 "2020-01-23T19:12:30Z")

</div>

Hi  
What is your end goal and what do you want to achieve with these queries? Do you want to create a custom visualization or something else ? It depends...you can try watcher with condition. When a watch is triggered, its condition determines whether or not to execute the watch actions. Within each action, you can also add a condition per action.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/action-conditions.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/action-conditions.html)  
Please provide more information.

Thanks  
Rashmi

---

<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 20, 2020, 7:21pm UTC](https://discuss.elastic.co/t/automate-es-query/216241/3 "2020-02-20T19:21:02Z")

</div>

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