Commit 57b1b94a by amira

add nodes health check

adjust script the new index
parent a3b5da65
...@@ -5,6 +5,9 @@ https://www.elastic.co/guide/en/kibana/5.5/_configuring_kibana_on_docker.html ...@@ -5,6 +5,9 @@ https://www.elastic.co/guide/en/kibana/5.5/_configuring_kibana_on_docker.html
# show indices and size # show indices and size
curl 172.16.1.72:9200/_cat/indices?v curl 172.16.1.72:9200/_cat/indices?v
# show clusters health
curl localhost:9200/_cluster/health/?level=shards
# delete specific document by id (_id) # delete specific document by id (_id)
curl -XDELETE http://localhost:9200/activityidx_v2/activity/AXEQN08B5-afsw1eO1rt curl -XDELETE http://localhost:9200/activityidx_v2/activity/AXEQN08B5-afsw1eO1rt
......
...@@ -15,7 +15,7 @@ create_dataset_reports() { ...@@ -15,7 +15,7 @@ create_dataset_reports() {
TENANT_FILE_NAME="reports-${TENANT}-${HOST}" TENANT_FILE_NAME="reports-${TENANT}-${HOST}"
rm ${TENANT_FILE_NAME}*.* rm ${TENANT_FILE_NAME}*.*
# create dataset - last 7 days # create dataset - last 7 days
CREATE_DATASET=`es2csv -r -q "${QUERY_JSON}" -u localhost:9200 -o ${TENANT_FILE_NAME}.csv -i activityidx -f creationTime id type metaData` CREATE_DATASET=`es2csv -r -q "${QUERY_JSON}" -u localhost:9234 -o ${TENANT_FILE_NAME}.csv -i activityidx_v2 -f creationTime id type metaData`
#CREATE_DATASET=`es2csv -r -q ${QUERY_JSON} { "query":{"bool":{"must":[{"query_string":{"query":"tenant:${TENANT} & type:\"report/*\"" }}],"filter":[{"range": {"published": {"gte": "now-7d","format": "epoch_millis" }}}]}}}' -u localhost:9200 -m 100 -o reports-${TENANT}.csv -i activityidx -f creationTime id type metaData` #CREATE_DATASET=`es2csv -r -q ${QUERY_JSON} { "query":{"bool":{"must":[{"query_string":{"query":"tenant:${TENANT} & type:\"report/*\"" }}],"filter":[{"range": {"published": {"gte": "now-7d","format": "epoch_millis" }}}]}}}' -u localhost:9200 -m 100 -o reports-${TENANT}.csv -i activityidx -f creationTime id type metaData`
echo "${CUR_TIMESTAMP} - create dataset reports for ${TENANT}: ${CREATE_DATASET}" >> /opt/mcx/config/docker/upload-datasets.log echo "${CUR_TIMESTAMP} - create dataset reports for ${TENANT}: ${CREATE_DATASET}" >> /opt/mcx/config/docker/upload-datasets.log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment