# Creating Dynamic Dashboard with Kibana

**URL:** https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana/18357
**Category:** Elasticsearch
**Created:** [June 26, 2014, 6:27pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana/18357 "2014-06-26T18:27:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Yongtao\_You](https://avatars.discourse-cdn.com/v4/letter/y/dbc845/32.png) [@Yongtao\_You](https://discuss.elastic.co/u/Yongtao_You)
#### Post date: [June 26, 2014, 6:27pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana/18357/1 "2014-06-26T18:27:16Z")

</div>

Hi,

I would like to create a "dynamic" dashboard similar to  
".../kibana/src/index.html#/dashboard/script/logstash.js". By dynamic I  
mean I want to generate the dashboard based on a query result. For example,  
I would like to query a field and find out how many unique values are there  
in that field, and then draw a time-based line for each of those unique  
values on my dashboard. What's the recommended way of query ES from within  
a dashboard script? Any examples?

Thanks.  
Yongtao

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b3d47a64-7190-4d4e-b74a-a016874a4d0e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3d47a64-7190-4d4e-b74a-a016874a4d0e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Andre\_Encarnacao](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Andre\_Encarnacao](https://discuss.elastic.co/u/Andre_Encarnacao)
#### Post date: [July 23, 2014, 10:29pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana/18357/2 "2014-07-23T22:29:16Z")

</div>

I am actually wondering the same thing. Is there a way to query ES from  
within a Kibana dashboard script in order to make decisions on how to  
layout our dashboard? I tried using the Elasticsearch-js API (copy and  
pasted the entire API into the dashboard script) but there's no way to use  
the asynchronous ES data calls from within the synchronous dashboard  
script. Any way around this?

Thanks,  
Andre

On Thursday, June 26, 2014 12:27:16 PM UTC-6, Yongtao You wrote:

> Hi,
> 
> I would like to create a "dynamic" dashboard similar to  
> ".../kibana/src/index.html#/dashboard/script/logstash.js". By dynamic I  
> mean I want to generate the dashboard based on a query result. For example,  
> I would like to query a field and find out how many unique values are there  
> in that field, and then draw a time-based line for each of those unique  
> values on my dashboard. What's the recommended way of query ES from within  
> a dashboard script? Any examples?
> 
> Thanks.  
> Yongtao

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/455d9812-3cab-4de5-8bc6-e5e05e31e09b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/455d9812-3cab-4de5-8bc6-e5e05e31e09b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:13am UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana/18357/3 "2017-07-06T01:13:40Z")

</div>


