Skip to content

Instantly share code, notes, and snippets.

@mayvazyan
Last active January 13, 2016 05:39
Show Gist options
  • Save mayvazyan/f7a1e797d8c4de6991bc to your computer and use it in GitHub Desktop.
Save mayvazyan/f7a1e797d8c4de6991bc to your computer and use it in GitHub Desktop.
elasticdump
sudo apt-get install -y npm
npm install elasticdump
sudo ln -s /usr/bin/nodejs /usr/bin/node
cd node_modules/elasticdump/bin/
./elasticdump --input=http://localhost:9200/.kibana --output=$ --type=data --searchBody='{"filter": { "or": [ {"type": {"value": "dashboard"}}, {"type" : {"value":"visualization"}}, {"type" : {"value":"search"}}] }}' > kibana-exported.json
./elasticdump --input=kibana-config.json --output=http://localhost:9200/.kibana --type=data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment