Log Platforms
Cheat sheet · https://pcornel.dk/topic.php?topic=6106
Answer
Log platforms store and search logs: Loki (labels + compressed chunks, LogQL), Elasticsearch/OpenSearch (full-text indices), Splunk and cloud services.
Remember
Loki: few low-cardinality labels, filter content at query time. Elasticsearch: mapping and shard sizing matter. Both need retention policies.
First checks
/ready— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
agents → ingestion → index/chunks → storage → query
Where it usually breaks
Common failures are high-cardinality labels/fields, index mapping conflicts, shipper backpressure, dropped multiline events, wrong tenant/index/time field, retention rollover surprises and duplicate forwarding loops.
Log Platforms verification boundary matrix
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Loki concepts | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Elastic/OpenSearch concepts / Syslog pipelines | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | journald as a source | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Windows Event forwarding as a source | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6106