Skip to content

Instantly share code, notes, and snippets.

@arpat
Created October 11, 2017 11:46
Show Gist options
  • Select an option

  • Save arpat/ac81f00c78338414e69e843f5b2c67c8 to your computer and use it in GitHub Desktop.

Select an option

Save arpat/ac81f00c78338414e69e843f5b2c67c8 to your computer and use it in GitHub Desktop.

Revisions

  1. arpat created this gist Oct 11, 2017.
    9 changes: 9 additions & 0 deletions kibana-curl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/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":{}}}'