# How to use Kibana to run ES query?

**URL:** https://discuss.elastic.co/t/how-to-use-kibana-to-run-es-query/54711
**Category:** Kibana
**Created:** [July 5, 2016, 9:37am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-run-es-query/54711 "2016-07-05T09:37:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)
#### Post date: [July 5, 2016, 9:37am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-run-es-query/54711/1 "2016-07-05T09:37:58Z")

</div>

I have a query which is able to run in Elasticsearch following something similar to [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html#\_prediction](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html#_prediction)

```
GET linux_cpu*/_search?search_type=count
{
"aggs": {
"my_date_histo": {
"date_histogram": {
"field": "@timestamp",
"interval": "day"
},
"aggs": {
"the_sum": {
"avg": {
"field": "CPU(%)"
}
},
"the_movavg": {
"moving_avg": {
"bucketsPath": "the_sum",
"window": 90,
"model": "holt_winters",
"settings": {
"type": "add",
"alpha": 0.8,
"beta": 0.2,
"gamma": 0.7,
"period": 30
},
"predict": 30
}
}
}
}
}
}

```

However, as also seen from the post, there are some graphs that can be generated. However, I have no idea how to do that. Is there anyone that could help?

Great thanks in advace.

---

<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: [July 5, 2016, 10:03am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-run-es-query/54711/2 "2016-07-05T10:03:50Z")

</div>

Please stop posting multiple threads on the same topic.

See [How to use Kibana to run Elasticsearch query?](https://discuss.elastic.co/t/how-to-do-es-moving-avearge-prediction-with-logstash/54683/3)

---

<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: [July 5, 2016, 10:03am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-run-es-query/54711/3 "2016-07-05T10:03:53Z")

</div>


