# Creating dynamic dashboard with kibana 4.4

**URL:** https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614
**Category:** Kibana
**Created:** [March 28, 2016, 5:28pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614 "2016-03-28T17:28:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)
#### Post date: [March 28, 2016, 5:28pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/1 "2016-03-28T17:28:44Z")

</div>

Hi all,

I am using kibana 4.4.2 and ES 2.2.0 and I would likes to create a "dynamic" dashboard; means that , I want to generate many dashboard based on a query result. For example, I would like to query one of my available fields named "cpu.system", and then draw a date histogram on my dashboard for each of those values.  
Please what is the recommended way to query ES from within a dashboard? can kibana 4 accept a script?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)
#### Post date: [March 28, 2016, 5:50pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/2 "2016-03-28T17:50:02Z")

</div>

There's not an API yet for creating visualizations and dashboards.

You can write documents to the .kibana index so it's possible to create things programmatically but that's rather difficult and not recommended.

But, maybe you can just create one histogram that is split by the cpu.system field.

For example, in this screenshot I did a Date Histogram and then split it by extension. It will be dynamic in that if new extensions are in the data in the future they will appear in this chart. Does that help?

 ![](https://us1.discourse-cdn.com/elastic/original/2X/1/1b6d6bb410e238e97b0456c826d757afcdce1426.png)

---

<div class="post-metadata">

### Author: ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)
#### Post date: [March 28, 2016, 6:42pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/3 "2016-03-28T18:42:20Z")

</div>

Thanks a lot @LeeDr for you quit reply. Please can you explain more what do you means by : "write documents to the .kibana index" ?

---

<div class="post-metadata">

### Author: ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)
#### Post date: [March 28, 2016, 6:48pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/4 "2016-03-28T18:48:22Z")

</div>

Here's a repo which creates Index patterns, Saved Searches, Visualizations, and Dashboards by writing them to the .kibana index in Elasticsearch;

> **[elastic/beats-dashboards](https://github.com/elastic/beats-dashboards/)**
>
> beats-dashboards - DEPRECATED. Moved to https://github.com/elastic/beats. Please use the new repository to add new issues.

Those are not dynamic. It writes the same static set of objects every time. And again, this is NOT a documented or supported method.

Thanks,  
Lee

---

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [March 28, 2016, 6:51pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/5 "2016-03-28T18:51:02Z")

</div>

Timelion may satisfy your needs [https://www.elastic.co/blog/timelion-timeline](https://www.elastic.co/blog/timelion-timeline)

---

<div class="post-metadata">

### Author: ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)
#### Post date: [March 28, 2016, 9:26pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/6 "2016-03-28T21:26:13Z")

</div>

Hi ,

Thanks again for all reply.  
@LeeDr like you say [https://github.com/elastic/beats-dashboards/](https://github.com/elastic/beats-dashboards/) is not dynamic and It isn't for my issue.  
@anhlqn I just installed Timelion plugin, and started playing with it, but I notice that I always have to change query in the search bar to see another set of data display into the graph ; and I don't want to solve my issue like that.

Please I want to have( if it is possible with kibana4) a script that will dynamically get available fields from my index and then draw a define graph on my dashboard for each field or set of fields.

Any help will be appreciate.  
Thanks.

---

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [March 29, 2016, 12:48am UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/7 "2016-03-29T00:48:19Z")

</div>

Per Timelion, you can add as many graphs as you want and save all of them into a dashboard.

I still don't understand your original question. Do you have different field names across your indexes? Do you mean that you frequently have new field names in your new indexes? Could you elaborate your usage?

---

<div class="post-metadata">

### Author: ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)
#### Post date: [March 29, 2016, 10:30pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/8 "2016-03-29T22:30:43Z")

</div>

Thank you again @anhlqn for the interest that you have about my concern

My basic problem is this: I want to know if it is possible to automatically create indexes in Kibana 4.2.2 (without going through the settings menu), if so, how to do it?. My aim is to create a dashboard automatically when a certain type of log is generated.

Thanks in advance

---

<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:57pm UTC](https://discuss.elastic.co/t/creating-dynamic-dashboard-with-kibana-4-4/45614/9 "2017-07-06T13:57:27Z")

</div>


