A small utility to sync Kibana config objects (dashboards, visuals, searches, etc...) with a local directory.
To install:
npm install -g kibconfig
see kibconfig --help
Start by creating a .kibconfig
file in a new empty directory. You'll probably
You can create a .kibconfig
file in any upstream directory to contain the configuration:
{
"url": "http://localhost:9200",
"datadir": "kibana",
"verbose": true
}
Config attributes correspond to the parameters that are shown via kibconfig --help
.
You can also maintain different profiles, for example to maintain different stages:
{
"profiles": {
"preprod": {
"url": "http://my-pre-production-server:9200",
"datadir": "preprod",
"verbose": true
},
"production": {
"url": "http://my-production-server:9200",
"datadir": "production",
"verbose": true
}
}
}
Run ES6 code directly:
babel-node src/kibconfig.js
Compile es6 code for publish:
yarn run compile
Re-Install it locally after local updates:
# Don't forget to unlink first
yarn unlink
yarn build
yarn link