Skip to content

Instantly share code, notes, and snippets.

@kkroesch
Forked from arpat/kibana-curl.sh
Created November 18, 2021 19:49
Show Gist options
  • Save kkroesch/e98c7d0219763b5173d695c06f2a7d8a to your computer and use it in GitHub Desktop.
Save kkroesch/e98c7d0219763b5173d695c06f2a7d8a to your computer and use it in GitHub Desktop.
CURL the kibana endpoint to query Elasticsearch
#!/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