aboutsummaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/es_backup/clean_longs.sh
diff options
context:
space:
mode:
authorac2550 <ac2550@intl.att.com>2018-03-29 14:23:06 +0200
committerac2550 <ac2550@intl.att.com>2018-03-29 14:23:06 +0200
commit18673e8126c20708cabfeb65b3720b6893d76774 (patch)
treed5688a65a4698520d7c0ade515db856be318e0d0 /extra/docker/elk/es_backup/clean_longs.sh
parent54bafd49e8b3773a85992a946fea01d52299741b (diff)
Add error widget to dashboard
Change-Id: Icf9dbd34a04ee6e7979d3754f753297654dd4a48 Issue-ID: CLAMP-77 Signed-off-by: ac2550 <ac2550@intl.att.com>
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