# Creating Kibana Dashboard Programmatically

**URL:** https://discuss.elastic.co/t/creating-kibana-dashboard-programmatically/40716
**Category:** Kibana
**Created:** [February 2, 2016, 10:42am UTC](https://discuss.elastic.co/t/creating-kibana-dashboard-programmatically/40716 "2016-02-02T10:42:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rajeev\_Gaurav](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Rajeev\_Gaurav](https://discuss.elastic.co/u/Rajeev_Gaurav)
#### Post date: [February 2, 2016, 10:42am UTC](https://discuss.elastic.co/t/creating-kibana-dashboard-programmatically/40716/1 "2016-02-02T10:42:54Z")

</div>

Hi All,

I am trying to create a dashboard pro grammatically.I am using elastic search 2.1.1 ,log stash 2.1.1 and Kibana 4.3.1

Kindly help.

---

<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: [February 3, 2016, 1:18pm UTC](https://discuss.elastic.co/t/creating-kibana-dashboard-programmatically/40716/2 "2016-02-03T13:18:56Z")

</div>

You can either write directly to the .kibana index or use the URL structure to create dynamic dashboards (though the latter requires you already have saved visualizations you're combining).

---

<div class="post-metadata">

### Author: ![Rajeev\_Gaurav](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Rajeev\_Gaurav](https://discuss.elastic.co/u/Rajeev_Gaurav)
#### Post date: [February 19, 2016, 8:48am UTC](https://discuss.elastic.co/t/creating-kibana-dashboard-programmatically/40716/5 "2016-02-19T08:48:24Z")

</div>

Hi Tbragin,

I tried write directly to the .kibana index using below Curl command and got the error.Can you please help me.

curl -XPUT [http://rajeevpc:9200/.kibana/dashboard/testdashboard](http://rajeevpc:9200/.kibana/dashboard/testdashboard) -d '{[  
{  
"\_id": "D1",  
"\_type": "dashboard",  
"\_source": {  
"title": "D1",  
"hits": 0,  
"description": "",  
"panelsJSON": "[{"id":"V1","type":"visualization","panelIndex":1,"size\_x":3,"size\_y":2,"col":1,"row":1}]",  
"optionsJSON": "{"darkTheme":false}",  
"uiStateJSON": "{}",  
"version": 1,  
"timeRestore": false,  
"kibanaSavedObjectMeta": {  
"searchSourceJSON": "{"filter":[{"query":{"query\_string":{"query":"\*","analyze\_wildcard":true}}}]}"  
}  
}  
}  
]}'  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 1024 100 469 100 555 14656 17343 --:--:-- --:--:-- --:--:-- 17343{"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"failed to parse"}],"type":"mapper\_parsing\_exception","reason":"failed to parse","caused\_by":{"type":"json\_parse\_exception","reason":"Unexpected character ('[' (code 91)): was expecting either valid name character (for unquoted name) or double-quote (for quoted) to start field name\n at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@77224b66; line: 1, column: 3]"}},"status":400}

---

<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:01pm UTC](https://discuss.elastic.co/t/creating-kibana-dashboard-programmatically/40716/6 "2017-07-06T14:01:45Z")

</div>


