Skip to content

Instantly share code, notes, and snippets.

@portante
Created April 20, 2018 18:07
Show Gist options
  • Save portante/15d4c354ccf63993d5f634528fd23cba to your computer and use it in GitHub Desktop.
Save portante/15d4c354ccf63993d5f634528fd23cba to your computer and use it in GitHub Desktop.
A simple script to fetch the list of pending tasks from Elasticsearch as deployed in OCP Aggregated Logging.
#!/bin/bash
ES_URL='https://localhost:9200'
curl_get='curl -s -X GET --cacert /etc/elasticsearch/secret/admin-ca --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key'
date
$curl_get $ES_URL/_cluster/pending_tasks?pretty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment