# Data Storage for Kibana Plugin

**URL:** <https://discuss.elastic.co/t/data-storage-for-kibana-plugin/181831>\
**Category:** Kibana\
**Created:** [May 20, 2019, 1:37pm UTC](https://discuss.elastic.co/t/data-storage-for-kibana-plugin/181831 "2019-05-20T13:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkelsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkelsen/32/46291_2.png) [@dkelsen](https://discuss.elastic.co/u/dkelsen)\
**Post date:** [May 20, 2019, 1:37pm UTC](https://discuss.elastic.co/t/data-storage-for-kibana-plugin/181831/1 "2019-05-20T13:37:52Z")

</div>

Hi there,

I was wondering whether Kibana offers any functionality regarding the storage of custom data objects (e.g. JSON) originating from a plugin that I'm creating.

Kibana seems to have the [Saved Objects API](https://www.elastic.co/guide/en/kibana/7.0/saved-objects-api.html), but that appears to only allow [predetermined types](https://www.elastic.co/guide/en/kibana/7.0/saved-objects-api-get.html#_path_parameters), like visualization and dashboard.

It appears to me that I'll have to use a separate database instead connected to the back end server of my plugin.

Appreciate any advice or opinions on this matter.

Best,  
Dilshan

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [May 20, 2019, 7:35pm UTC](https://discuss.elastic.co/t/data-storage-for-kibana-plugin/181831/2 "2019-05-20T19:35:17Z")

</div>

Internally, all of our products' data is stored in Elasticsearch, and it's recommended that other plugin authors do the same. This can be done using the saved objects client, if you are trying to write a new saved object to the `.kibana` index, or by creating your own index in Elasticsearch and writing directly to that (tip: use callWithRequest to enforce security rules).

There's nothing stopping you from adding a dependency on another server, of course, but it adds overhead for users since they have to stand up that other server too.

---

<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:** [June 17, 2019, 7:35pm UTC](https://discuss.elastic.co/t/data-storage-for-kibana-plugin/181831/3 "2019-06-17T19:35:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
