Skip to content

Instantly share code, notes, and snippets.

@xcsrz
Created July 18, 2014 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcsrz/5ded39ae18f92bad65ee to your computer and use it in GitHub Desktop.
Save xcsrz/5ded39ae18f92bad65ee to your computer and use it in GitHub Desktop.
This gets the information to identify the master node in Elasticsearch 0.90.*
#!/bin/bash
curl -s "http://localhost:9200/_cluster/state?pretty=true&filter_metadata=true&filter_indices=true&filter_routing_table=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment