summaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/es_backup/clean_longs.sh
diff options
context:
space:
mode:
authorSébastien Determe <sd378r@intl.att.com>2018-03-29 16:09:11 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-29 16:09:11 +0000
commitc891d713c7e42a14697a0607023b862a50dd4775 (patch)
treeb59950cbea6eef8175027e2069c44850efdd1e2e /extra/docker/elk/es_backup/clean_longs.sh
parent1c6610921488ad9e8ddf69708949f27bd8736bc0 (diff)
parent18673e8126c20708cabfeb65b3720b6893d76774 (diff)
Merge "Add error widget to dashboard"
Diffstat (limited to 'extra/docker/elk/es_backup/clean_longs.sh')
-rw-r--r--extra/docker/elk/es_backup/clean_longs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/docker/elk/es_backup/clean_longs.sh b/extra/docker/elk/es_backup/clean_longs.sh
new file mode 100644
index 000000000..bbacf506d
--- /dev/null
+++ b/extra/docker/elk/es_backup/clean_longs.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+# these commands remove problematic longs in the default backup
+# to avoid errors in kibana when restored.
+sed -i 's/,"hits":0//g' default.json
+sed -i 's/,"version":1//g' default.json