Created
October 11, 2017 11:46
-
-
Save arpat/ac81f00c78338414e69e843f5b2c67c8 to your computer and use it in GitHub Desktop.
CURL the kibana endpoint to query Elasticsearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
## CURL the kibana endpoint | |
## Use the kibana dev console to validate query json | |
curl -i --insecure --user User:Password -XPOST \ | |
--header "kbn-version: 5.6.0" \ | |
'https://kibana.yourdomain/api/console/proxy?path=_search&method=POST' \ | |
--data '{"query":{"match_all":{}}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment