Last active
March 26, 2018 21:42
-
-
Save SamyCoenen/1f3672a80a27854defd8393a63cb724c to your computer and use it in GitHub Desktop.
Make a backup of your Kibana4 dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Samy Coenen | |
# Company: Gluo NV | |
elasticdump \ | |
--input=https://....................eu-central-1.es.amazonaws.com/.kibana-4 \ | |
--output=$ \ | |
--type=data \ | |
--searchBody='{"filter": { "or": [ {"type": {"value": "dashboard"}}, {"type" : {"value":"visualization"}}] }}' \ | |
> kibana-exported.json | |
# Restore | |
# elasticdump --input=kibana-exported.json --output=https://.............es.amazonaws.com/.kibana-4 --type=data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment