diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-02-10 15:51:07 +0100 |
---|---|---|
committer | Sébastien Determe <sebastien.determe@intl.att.com> | 2020-02-10 17:16:24 +0000 |
commit | e06b7efed417389decbf043b5fa7bf7253652583 (patch) | |
tree | 6864b09351094d533bc37bbcbda28f8aa682a154 /extra/docker/elk/tools/EsAutoQuery/autoQueryLoop.sh | |
parent | 5d03e8b55ff7780079085184f6d30a4d0a26a4a7 (diff) |
Removal of ELK
Removal of ELK stack in this repo as now we have clamp-dashboard repo to
handle the images construction
Issue-ID: CLAMP-483
Change-Id: Icdea709015a973acc6e7884b5444caa1ee3c8cc8
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'extra/docker/elk/tools/EsAutoQuery/autoQueryLoop.sh')
-rwxr-xr-x | extra/docker/elk/tools/EsAutoQuery/autoQueryLoop.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/extra/docker/elk/tools/EsAutoQuery/autoQueryLoop.sh b/extra/docker/elk/tools/EsAutoQuery/autoQueryLoop.sh deleted file mode 100755 index 49294120..00000000 --- a/extra/docker/elk/tools/EsAutoQuery/autoQueryLoop.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -QUERY_FILE=${1:-query.json} -INDEX=${2:-logstash-*} -HOST_URL=${3:-http://localhost:9200} -URL=$HOST_URL/$INDEX/_search - -function usage() { - echo "Usage: $0 [QUERY_FILE [INDEX [HOST_URL]]]" - echo - echo "This script automatically sends the query file to elasticsearch" - echo "each time it's modified." -} - -if [ "${1}" == "--help" ]; -then - usage - exit 0 -fi - -echo "Querying '$URL' with '$QUERY_FILE'" -while [ 1 ]; -do - curl -XGET "$URL" -H 'Content-Type: application/json' -d"@$QUERY_FILE" | js-beautify - echo - inotifywait -e modify query.json -done |