Skip to content

a simple and smart way to back up kibana objects

License

Notifications You must be signed in to change notification settings

leocomelli/kibup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kibup

a simple and smart way to back up kibana objects

Instalation

Install the client package from GitHub:

go get github.com/leocomelli/kibup

or install it from a source code checkout:

git clone git@github.com:leocomelli/kibup.git
make
./dist/kibup

Usage

./kibup 
Error: required flag(s) "repo", "token" not set
Usage:
  kibup [flags]

Flags:
      --author-email string   github author email (default "kibup")
      --author-name string    github author name (default "kibup@kibup.com")
      --file string           backup filename (default "kibana.json")
      --github string         github api url (default "https://api.github.com/")
  -h, --help                  help for kibup
      --host string           elasticsearch host:port (default "http://127.0.0.1:9200")
      --index string          kibana index name (default ".kibana")
      --local                 create file locally
      --repo string           repository name (owner/repo)
      --size int              elastisearch query result size (default 10000)
      --sort string           field to sort the elasticsearch query (default "_type")
      --token string          github personal access token
      --types stringArray     kibana object types (default [dashboard,visualization,search])

required flag(s) "repo", "token" not set

Example

./kibup --token s3cr3t \
        --host http://192.168.1.120:9200 \
        --repo leocomelli/kibana \        
        --file mybackup.json \
        --local

Compatibility

  • GitHub API v3
  • Elasticsearch 6.x

References

Contributing

All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.

Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.

It is more important to the community that you are able to contribute.