Pcornel
Observability

Log Platforms

Cheat sheet · https://pcornel.dk/topic.php?topic=6106

Back to the Topic

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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

BoundaryInspectHealthy interpretationDo not infer
IntentLoki conceptsIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeElastic/OpenSearch concepts / Syslog pipelinesOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective statejournald as a sourceIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeWindows Event forwarding as a sourceThe original bounded check succeeds in the same time windowProduction 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

Confirmation

Confirm action

Continue?