Skip to content

Instantly share code, notes, and snippets.

@WadeBarnes
Created June 29, 2023 11:56
Show Gist options
  • Save WadeBarnes/d2cdef175cb29618ac8fccece5460a78 to your computer and use it in GitHub Desktop.
Save WadeBarnes/d2cdef175cb29618ac8fccece5460a78 to your computer and use it in GitHub Desktop.
In cluster query Elastic Search for logs for a given namespace through the api
curl -vk -XGET "https://elasticsearch.openshift-logging.svc:9200/_search" -H 'Content-Type: application/json' -H "Authorization: Bearer sha256~123abc" -d'
{
"query": {
"match_all": {}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment