Bird
Raised Fist0

You want to monitor your cluster health and get detailed info about each index's health. Which API call should you use?

hard🚀 Application Q15 of Q15
Elasticsearch - Cluster Management
You want to monitor your cluster health and get detailed info about each index's health. Which API call should you use?
AGET /_cluster/health?level=cluster
BGET /_cluster/health?level=indices
CGET /_cluster/state?filter_path=metadata.indices
DGET /_nodes/stats
Step-by-Step Solution
Solution:
  1. Step 1: Identify the parameter for detailed index health

    The level=indices parameter in the Cluster Health API returns health info for each index.
  2. Step 2: Compare with other options

    level=cluster gives overall cluster health only; /_cluster/state and /_nodes/stats provide different info unrelated to health per index.
  3. Final Answer:

    GET /_cluster/health?level=indices -> Option B
  4. Quick Check:

    Use level=indices for per-index health details [OK]
Quick Trick: Use level=indices to get health info per index [OK]
Common Mistakes:
MISTAKES
  • Using level=cluster for detailed index info
  • Confusing cluster state with health API
  • Requesting node stats instead of health

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes