/kibana-backup-simple

Simple backup for Kibana saved objects: config, index patterns, dashboards, saved searches, etc.

Primary LanguagePythonOtherNOASSERTION

Simple backup for Kibana saved objects: config, index patterns, dashboards, saved searches, etc.

Uses python3 and python-requests library, which you have to install on your every host anyway, because it's awesome.

Usage

kibana-backup.py [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD] backup > backup.json

cat backup.json | kibana-backup.py [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD] restore

  • backup write backup file in json format to stdout
  • restore restore backup from stdin
  • --kibana-url base URL to access Kibana API, default: http://127.0.0.1:5601
  • --user Kibana user
  • --password Kibana password

Documentation

License

WTFPL

P.S. If this code is useful for you - don't forget to put a star on it's github repo.