summaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/README.md
diff options
context:
space:
mode:
authorac2550 <ac2550@intl.att.com>2018-10-05 13:50:23 +0200
committerac2550 <ac2550@intl.att.com>2018-10-08 15:35:40 +0200
commitead1051f85d2767d1ab696d63a71e593c77f8ed8 (patch)
tree28142f77508a065a0496edd45aa0e88545d2c923 /extra/docker/elk/README.md
parente3489d939cd18a4cfa2394ab64ffdb972ddd6a86 (diff)
New kibana config load/restore
Change-Id: I9c26e891c171d8f84bb9f4e03319f63599e00298 Issue-ID: CLAMP-226 Signed-off-by: ac2550 <ac2550@intl.att.com>
Diffstat (limited to 'extra/docker/elk/README.md')
-rw-r--r--extra/docker/elk/README.md57
1 files changed, 55 insertions, 2 deletions
diff --git a/extra/docker/elk/README.md b/extra/docker/elk/README.md
index 04c24394e..f74c4e0e9 100644
--- a/extra/docker/elk/README.md
+++ b/extra/docker/elk/README.md
@@ -11,9 +11,58 @@ Deployment instructions
Requirements: docker-compose
1. Update configuration in docker-compose file
-2. `docker-compose up -d logstash kibana`
-3. `docker-compose run default` # loads the dashboard configuration for Kibana
+2. `docker-compose up -d elasticsearch logstash kibana`
+If you encounter connection problems with kibana, first deploy elasticsearch, wait for it to be available, then kibana.
+
+Backup/restore
+--------------
+
+backup.py and restore.py scripts are available inside the kibana docker image for saving and restoring the configuration.
+
+### backup.py
+```
+docker-compose exec kibana backup.py -C /saved-objects/
+```
+```
+usage: backup.py [-h] [-v] [-C CONFIGURATION_PATH] [-f] [-H KIBANA_HOST]
+
+Description of the script
+
+optional arguments:
+ -h, --help show this help message and exit
+ -v, --verbose Use verbose logging
+ -C CONFIGURATION_PATH, --configuration_path CONFIGURATION_PATH
+ Path of the configuration to be backed up.
+ -f, --force If the save folder already exists, overwrite files
+ matching a configuration item that should be written.
+ Files already in the folder that do not match are left
+ as-is.
+ -H KIBANA_HOST, --kibana-host KIBANA_HOST
+ Kibana endpoint.
+
+```
+
+### restore.py
+```
+docker-compose exec kibana restore.py -C /saved-objects/ -f
+```
+```
+usage: restore.py [-h] [-v] [-C CONFIGURATION_PATH] [-H KIBANA_HOST] [-f]
+
+Restores the kibana configuration.
+
+optional arguments:
+ -h, --help show this help message and exit
+ -v, --verbose Use verbose logging
+ -C CONFIGURATION_PATH, --configuration_path CONFIGURATION_PATH
+ Path of the configuration to be restored.Should
+ contain at least one folder named index-
+ pattern,config,search,visualization or dashboard
+ -H KIBANA_HOST, --kibana-host KIBANA_HOST
+ Kibana endpoint.
+ -f, --force Overwrite configuration if needed.
+```
Tools
-----
@@ -30,3 +79,7 @@ It reads a json file as a query for Elasticsearch, pushes it on the ES server, a
### DMaaP Service Mocker
Script that simulates control loop DMaaP services to provide sample data to logstash through DMaaP.
+
+TODO
+----
+* Add a script that verifies that elasticsearch is available before starting loading the default configuration for kibana