# Kibana index settings and dashboards are always lost when updating elk container

**URL:** <https://discuss.elastic.co/t/kibana-index-settings-and-dashboards-are-always-lost-when-updating-elk-container/169011>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [February 19, 2019, 11:22am UTC](https://discuss.elastic.co/t/kibana-index-settings-and-dashboards-are-always-lost-when-updating-elk-container/169011 "2019-02-19T11:22:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackman61](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackman61/32/41095_2.png) [@hackman61](https://discuss.elastic.co/u/hackman61)\
**Post date:** [February 19, 2019, 11:22am UTC](https://discuss.elastic.co/t/kibana-index-settings-and-dashboards-are-always-lost-when-updating-elk-container/169011/1 "2019-02-19T11:22:17Z")

</div>

Hello,

I have a docker container with elk deployed, with mount binding for /var/lib/elasticsearch , and when I recreate the containe, elasticsearch data are not lost ( I have correcly my logs), but everything related to Kibana is lost !! Before recreate the container I start from my host the command `metricbeat setup --dashboards` , and everytime I recreate the containe , I must recreate Index pattern and restart the setup of metricbeat.

Is this the normal way ? I have read that with the mount binding for ES data, kibana config is not lost, so I'm a little bit confused 😉

Thank you !

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 19, 2019, 11:36am UTC](https://discuss.elastic.co/t/kibana-index-settings-and-dashboards-are-always-lost-when-updating-elk-container/169011/2 "2019-02-19T11:36:10Z")

</div>

Have you configured persistent storage for where Elasticsearch stores data? This is set through the `path.data` parameter and the default value depends on how you installed Elasticsearch.

---

<div class="post-metadata">

**Author:** ![hackman61](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackman61/32/41095_2.png) [@hackman61](https://discuss.elastic.co/u/hackman61)\
**Post date:** [February 19, 2019, 1:16pm UTC](https://discuss.elastic.co/t/kibana-index-settings-and-dashboards-are-always-lost-when-updating-elk-container/169011/3 "2019-02-19T13:16:17Z")

</div>

No it was default settings, I have configured now elasticsearch.yml like this :

```
path.data: /var/lib/elasticsearch

```

And effectivly, now my index patterns are staying 😉

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e2a06f7b098f2c5d5aa2ec5d9f0e9f98a3d2663.png)

But I continue to have problem with dashboards :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2ca872f7afe0bc12291ea2eea4577f3d58cfe82d.png)

I don't know why this error appear, my index pattern name is the same as waht the dashboard want's !

---

<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:** [March 19, 2019, 1:16pm UTC](https://discuss.elastic.co/t/kibana-index-settings-and-dashboards-are-always-lost-when-updating-elk-container/169011/4 "2019-03-19T13:16:31Z")

</div>

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