Code Review
/
clamp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add error widget to dashboard
[clamp.git]
/
extra
/
docker
/
elk
/
es_backup
/
clean_longs.sh
diff --git a/extra/docker/elk/es_backup/clean_longs.sh
b/extra/docker/elk/es_backup/clean_longs.sh
new file mode 100644
(file)
index 0000000..
bbacf50
--- /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