Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
57b1b94a
authored
Apr 26, 2020
by
amira
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add nodes health check
adjust script the new index
parent
a3b5da65
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
common/docs/elasticsearch-rest.txt
config/ipgallery-mcz/config/docker/upload-datasets.sh
common/docs/elasticsearch-rest.txt
View file @
57b1b94a
...
@@ -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
...
...
config/ipgallery-mcz/config/docker/upload-datasets.sh
View file @
57b1b94a
...
@@ -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:92
00
-o
${
TENANT_FILE_NAME
}
.csv
-i
activityidx
-f
creationTime id
type
metaData
`
CREATE_DATASET
=
`
es2csv
-r
-q
"
${
QUERY_JSON
}
"
-u
localhost:92
34
-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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment