# Creating Dashboards - best practice? json or js?

**URL:** <https://discuss.elastic.co/t/creating-dashboards-best-practice-json-or-js/25433>\
**Category:** Kibana\
**Created:** [July 13, 2015, 10:07am UTC](https://discuss.elastic.co/t/creating-dashboards-best-practice-json-or-js/25433 "2015-07-13T10:07:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcelHallmann](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@MarcelHallmann](https://discuss.elastic.co/u/MarcelHallmann)\
**Post date:** [July 13, 2015, 10:07am UTC](https://discuss.elastic.co/t/creating-dashboards-best-practice-json-or-js/25433/1 "2015-07-13T10:07:55Z")

</div>

Hi all,

what are your recommendation to create dashboards?

In our project we created some dashboards as json via exporting a simple dashboard and afterwards customizing it.  
But, in the "query" parts we have some logic / queries that are complicated.

I really would like to test (or debug) these queries, but I don't think this is possible within the json files.

So, what could I do?  
Rewrite the json dashboards to js dashboards?  
Or is it possible to implement the logic / queries in a js file and import this in the json?

Thanks and regards,  
Marcel

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [July 14, 2015, 12:40pm UTC](https://discuss.elastic.co/t/creating-dashboards-best-practice-json-or-js/25433/2 "2015-07-14T12:40:11Z")

</div>

I'd stick with templated dashboards if you can get away with it -- they are a good option, if you just want to customize a couple of attributes. Scripted dashboard are much more powerful, but harder to build and maintain.

---

<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, 2:16pm UTC](https://discuss.elastic.co/t/creating-dashboards-best-practice-json-or-js/25433/3 "2017-07-06T14:16:35Z")

</div>

Closed on July 6, 2017, 2:16pm UTC


