Interview Prep/Monitoring & Observability/Logging: Loki, Fluent Bit and Elasticsearch

Elasticsearch cluster is `yellow` on a single-node setup

BeginnerTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → Replicas can't be placed on the same node as their primary, so every index with number_of_replicas: 1 stays yellow.

Diagnose → _cat/shards shows replicas UNASSIGNED with reason INDEX_CREATED.

Fix → For a single-node lab: PUT _all/_settings {"index.number_of_replicas": 0} and set it in the index template. In production, add nodes.

Prevent → Template replicas per environment.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch