Skip to content

Instantly share code, notes, and snippets.

@SamyCoenen
Last active March 26, 2018 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamyCoenen/1f3672a80a27854defd8393a63cb724c to your computer and use it in GitHub Desktop.
Save SamyCoenen/1f3672a80a27854defd8393a63cb724c to your computer and use it in GitHub Desktop.
Make a backup of your Kibana4 dashboard
#!/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