Purpose of this tool is to automate configuration of Kibana and Elastic.
The tool supports multiple commands using a subcommands approach.
How to use
kibana-cli <subcommand>
You can also run the tool in a docker image:
IMAGE=registry.gitlab.com/logius/cloud-native-overheid/components/kibana-cli:latest
docker run --rm \
-v $PWD/examples:/examples \
$IMAGE configure-space --config=examples/tenant.config.yaml
The following subcommands are available:
Subcommand |
Description |
configure-space |
Configure Kibana Space |
The configure-space
subcommand initializes a Kibana space for a tenant or customer.
Index patterns are created for the namespaces of this tenant.
Roles are configured in the Kibana space with an optional mapping to OIDC groups.
Commandline variables:
Variable |
Description |
config |
Path to customer configfile |
url |
Kibana FQDN including protocol, e.g. https://kibana.sample.com |
realm |
OIDC realm |
platform_prefix |
Platform prefix, e.g. 'sp' |
For an example of the customer config file see the examples folder.
Environment variables
Variable |
Description |
KIBANA_USERNAME |
Kibana/Elastic username |
KIBANA_PASSWORD |
Kibana password |