Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段孔乐
docker-elk
Commits
fa5b9246
Unverified
Commit
fa5b9246
authored
Feb 26, 2020
by
Antoine Cotten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis: Silence curl
parent
0291e8c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
run-tests.sh
.travis/run-tests.sh
+2
-2
No files found.
.travis/run-tests.sh
View file @
fa5b9246
...
@@ -76,7 +76,7 @@ curl -X POST -D- 'http://localhost:5601/api/saved_objects/index-pattern' \
...
@@ -76,7 +76,7 @@ curl -X POST -D- 'http://localhost:5601/api/saved_objects/index-pattern' \
-d
'{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}'
-d
'{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}'
log
'Searching index pattern via Kibana API'
log
'Searching index pattern via Kibana API'
response
=
"
$(
curl
'http://localhost:5601/api/saved_objects/_find?type=index-pattern'
-u
elastic:changeme
)
"
response
=
"
$(
curl
'http://localhost:5601/api/saved_objects/_find?type=index-pattern'
-
s
-
u
elastic:changeme
)
"
echo
"
$response
"
echo
"
$response
"
count
=
"
$(
jq
-rn
--argjson
data
"
${
response
}
"
'$data.total'
)
"
count
=
"
$(
jq
-rn
--argjson
data
"
${
response
}
"
'$data.total'
)
"
if
[[
$count
-ne
1
]]
;
then
if
[[
$count
-ne
1
]]
;
then
...
@@ -92,7 +92,7 @@ curl -X POST 'http://localhost:9200/_refresh' -u elastic:changeme \
...
@@ -92,7 +92,7 @@ curl -X POST 'http://localhost:9200/_refresh' -u elastic:changeme \
-s
-w
'\n'
-s
-w
'\n'
log
'Searching message in Elasticsearch'
log
'Searching message in Elasticsearch'
response
=
"
$(
curl
'http://localhost:9200/_count?q=message:dockerelk&pretty'
-u
elastic:changeme
)
"
response
=
"
$(
curl
'http://localhost:9200/_count?q=message:dockerelk&pretty'
-
s
-
u
elastic:changeme
)
"
echo
"
$response
"
echo
"
$response
"
count
=
"
$(
jq
-rn
--argjson
data
"
${
response
}
"
'$data.count'
)
"
count
=
"
$(
jq
-rn
--argjson
data
"
${
response
}
"
'$data.count'
)
"
if
[[
$count
-ne
1
]]
;
then
if
[[
$count
-ne
1
]]
;
then
...
...
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