Staff Pick

๐Ÿ“ก Monitor your APIs โ€” know when they go down before your users do

Better Stack checks uptime every 30 seconds with instant Slack, email & SMS alerts. Free tier available.

Start Free โ†’

Affiliate link โ€” we may earn a commission at no extra cost to you

Blogโ€บElasticsearch Status Guide

Is Elasticsearch Down? How to Check Cluster Status in 2026

Complete guide to diagnosing Elasticsearch outages, checking cluster health, recovering from red cluster states, and monitoring Elasticsearch in production.

Updated: April 2026ยท11 min read

๐Ÿ” Quick Elasticsearch Health Check

Run these commands immediately to diagnose Elasticsearch status:

# Cluster health (green/yellow/red)
curl -s http://localhost:9200/_cluster/health | jq .status

# Node list
curl -s http://localhost:9200/_cat/nodes?v

# Unassigned shards
curl -s http://localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason | grep UNASSIGNED

๐Ÿ”ง Recommended Tools

1
Access from any region

Some Elasticsearch issues are ISP or region-specific. A VPN lets you test from different locations and bypass local blocks.

6,400+ servers in 111 countries ยท 30-day money-back guarantee

2
Automate your status checks

Monitor Elasticsearch and 100+ APIs with instant email alerts. 14-day free trial.

โฑ๏ธ

Enterprise downtime costs $9,000+ per minute on average

ITIC research: 91% of enterprises say hourly downtime costs exceed $300,000. The average across all industries is $540,000/hour. Early detection reduces outage duration by 70%.

Elasticsearch powers search and analytics for thousands of production applications โ€” from e-commerce search to log management and security analytics. When Elasticsearch goes down or a cluster enters a red state, search functionality fails, log ingestion stops, and application errors cascade. Understanding Elasticsearch's health model is the key to fast diagnosis and recovery.

Elasticsearch Cluster Status: Green, Yellow, Red Explained

Elasticsearch reports cluster health in three states:

๐ŸŸข

Green โ€” All Shards Assigned

All primary and replica shards are successfully allocated to nodes. The cluster is fully operational and redundant.

๐ŸŸก

Yellow โ€” Replicas Unassigned

All primary shards are assigned but some replica shards are not. Data is accessible (no data loss) but the cluster has no redundancy โ€” a node failure could cause data loss.

๐Ÿ”ด

Red โ€” Primary Shards Unassigned

One or more primary shards are unassigned. Searches against affected indices fail. Data in those shards is inaccessible until the primary is recovered or restored from replica/snapshot.

How to Diagnose Elasticsearch Being Down

1. Check the Cluster Health API

# Basic health check
curl -s "http://localhost:9200/_cluster/health?pretty"

# Output includes:
# - status: green/yellow/red
# - number_of_nodes: total nodes
# - unassigned_shards: shards needing recovery
# - active_primary_shards: primary shards serving data

# For Elastic Cloud (requires authentication)
curl -s -u username:password \
  "https://YOUR_CLUSTER.es.io/_cluster/health?pretty"

2. Check Node Availability

# List all nodes (shows which are online)
curl -s "http://localhost:9200/_cat/nodes?v&h=name,ip,heap.percent,disk.used_percent,load_1m,node.role"

# Check if master node is elected
curl -s "http://localhost:9200/_cat/master?v"

๐Ÿ“ก Monitor Elasticsearch uptime every 30 seconds โ€” get alerted in under a minute

Trusted by 100,000+ websites ยท Free tier available

Start Free โ†’

3. Diagnose Unassigned Shards

# List unassigned shards with reasons
curl -s "http://localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason&s=state"

# Get detailed allocation explanation
curl -s -XGET "http://localhost:9200/_cluster/allocation/explain?pretty" \
  -H 'Content-Type: application/json' \
  -d '{"index": "your-index", "shard": 0, "primary": true}'
๐Ÿ“ก
Recommended

Monitor Elasticsearch cluster health automatically

Better Stack can monitor your Elasticsearch cluster health endpoint every minute and alert your team the moment it goes red โ€” before your search goes down in production.

Try Better Stack Free โ†’

Common Elasticsearch Outage Causes and Fixes

Out of Memory (JVM Heap Exhaustion)

Elasticsearch is Java-based and requires adequate heap memory. Symptoms: OOM errors in logs, nodes crashing under load.

# Check heap usage
curl -s "http://localhost:9200/_nodes/stats/jvm?pretty" | \
  jq '.nodes | to_entries[] | {name: .key, heap_used_percent: .value.jvm.mem.heap_used_percent}'

# Fix: Increase heap in jvm.options (set Xms and Xmx to same value, max 50% of RAM)
# -Xms8g
# -Xmx8g

Disk Full โ€” Indices in Read-Only Mode

When disk usage exceeds 90% (flood_stage watermark), Elasticsearch automatically makes all indices read-only to prevent data corruption.

# Check disk usage per node
curl -s "http://localhost:9200/_cat/allocation?v"

# Check for read-only indices
curl -s "http://localhost:9200/_cat/indices?v&h=index,status,health" | grep -E "open|close"

# Remove read-only lock after freeing disk space
curl -XPUT "http://localhost:9200/_all/_settings" \
  -H 'Content-Type: application/json' \
  -d '{"index.blocks.read_only_allow_delete": null}'

Split Brain / Master Election Failure

A network partition can cause multiple nodes to think they're the master (pre-Elasticsearch 7.x). Symptoms: cluster health API unreachable, conflicting master nodes.

Elasticsearch vs. Elastic Cloud: Different Failure Modes

Deployment TypeStatus SourceWho Manages Recovery
Self-hostedYour own /_cluster/health APIYour engineering team
Elastic Cloudcloud-status.elastic.coElastic SRE team
AWS OpenSearchhealth.aws.amazon.comAWS (managed) + you (config)

Frequently Asked Questions

How do I restart Elasticsearch safely?

Before restarting, disable shard allocation to prevent unnecessary shard movement: PUT /_cluster/settings with "persistent": {"cluster.routing.allocation.enable": "primaries"}. Then restart one node at a time, wait for it to rejoin the cluster before restarting the next.

What is the difference between Elasticsearch and OpenSearch?

OpenSearch is an open-source fork of Elasticsearch created by AWS in 2021 after Elastic changed its license. Both share the same core API, making migration feasible. AWS OpenSearch is the managed version available in AWS; Elastic Cloud is the official managed Elasticsearch from Elastic.

How do I check Elasticsearch logs for errors?

Elasticsearch logs are typically at /var/log/elasticsearch/[cluster-name].log (Linux). Look for OutOfMemoryError, NoShardAvailableException, ClusterBlockException, or NodeDisconnectedException as indicators of failure causes.

Why is my Elasticsearch slow instead of down?

Elasticsearch performance degradation (not full outage) is often caused by: high JVM garbage collection frequency, hot shards with unbalanced indexing load, too many open shards per node, or running search and indexing concurrently on undersized nodes. Use /_nodes/hot_threads to identify CPU bottlenecks.

Alert Pro

14-day free trial

Stop checking โ€” get alerted instantly

Next time Elasticsearch goes down, you'll know in under 60 seconds โ€” not when your users start complaining.

  • Email alerts for Elasticsearch + 9 more APIs
  • $0 due today for trial
  • Cancel anytime โ€” $9/mo after trial

Monitor Elasticsearch Cluster Health Automatically

Get alerted the moment your cluster turns red or nodes drop offline. Better Stack monitors your Elasticsearch health endpoint every 30 seconds.

Try Better Stack Free โ€” No Credit Card Required

Or use APIStatusCheck Alert Pro โ€” API monitoring from $9/mo

๐ŸŒ Can't Access Elasticsearch?

If Elasticsearch is working for others but not for you, it might be an ISP or regional issue. A VPN can help bypass network-level blocks and routing problems.

๐Ÿ”’

Troubleshoot with a VPN

Connect from a different region to test if the issue is local to your network. Also protects your connection on public Wi-Fi.

Try NordVPN โ€” 30-Day Money-Back Guarantee
๐Ÿ”‘

Secure Your Elasticsearch Account

Service outages are a common time for phishing attacks. Use a password manager to keep unique, strong passwords for every account.

Try NordPass โ€” Free Password Manager
Quick ISP test: Try accessing Elasticsearch on mobile data (Wi-Fi off). If it works, the issue is with your ISP or local network.

โณ While You Wait โ€” Try These Alternatives

๐Ÿ›  Tools We Use & Recommend

Tested across our own infrastructure monitoring 200+ APIs daily

Better StackBest for API Teams

Uptime Monitoring & Incident Management

Used by 100,000+ websites

Monitors your APIs every 30 seconds. Instant alerts via Slack, email, SMS, and phone calls when something goes down.

โ€œWe use Better Stack to monitor every API on this site. It caught 23 outages last month before users reported them.โ€

Free tier ยท Paid from $24/moStart Free Monitoring
1PasswordBest for Credential Security

Secrets Management & Developer Security

Trusted by 150,000+ businesses

Manage API keys, database passwords, and service tokens with CLI integration and automatic rotation.

โ€œAfter covering dozens of outages caused by leaked credentials, we recommend every team use a secrets manager.โ€

SEMrushBest for SEO

SEO & Site Performance Monitoring

Used by 10M+ marketers

Track your site health, uptime, search rankings, and competitor movements from one dashboard.

โ€œWe use SEMrush to track how our API status pages rank and catch site health issues early.โ€

From $129.95/moTry SEMrush Free
View full comparison & more tools โ†’Affiliate links โ€” we earn a commission at no extra cost to you