Persist data- Index pattern, dashboards gets wiped when container restarted

I am running my ELK and Beats services inside a docker container. I have created multiple index patterns and dashboards. But whenever I restart the docker container, the data gets wiped out. Is there a way to persist all this data and make sure the dashboards don't keep disappearing?

Are you using persistent storage for your Elasticsearch container?

Could you please elaborate what that means and would look like? Thank you!

Have you mapped a data path to the container that survives restarts? What does your docket file look like?

Thnaks a lot @Christian_Dahlqvist for this suggestion. I am going to follow this article to set up teh cluster.

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