How to backup / restore kibana index?

Hi,

as far as I know, kibana is storing all of its data in an own index in elasticsearch.
Since plain kibana (xpack is too expensive for us) does not have any user roles, each user is equal and can modify or delete anything in kibana. By mistake dashboard may break, or whatever.

My intention now is to setup an automatic backup of the content of the kibana index. I thought of following option:

backup:

  • export the whole kibana index via curl
    restore:
  • stop kibana
  • delete kibana index
  • create new kibana index
  • put all data from backup file to the index.

Then I can schedule the backup by cron for hourly or daily.

How can that be achieved? Are there any pitfalls I did not see?
Thanks Andreas

1 Like

hi @asp,

at first glance, that looks alright.

Have you looked at the snapshot/restore functionality of ES? https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html

That's probably the most straightforward way to create backups of an index.

You might also want to try out elasticdump.

It's not created or supported by Elastic company, but it's pretty handy.

Regards,
Lee

1 Like

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