Interview Prep/Monitoring & Observability/Logging: ELK/EFK, Loki & Log Shippers

What is Loki structured metadata?

AdvancedConceptLogging: ELK/EFK, Loki & Log Shippers
Answer

Structured metadata (Loki 3.x, schema v13 with TSDB index) attaches key-value pairs to each log line that are stored alongside the line but are not indexed as stream labels. It is designed for high-cardinality data such as trace_id, pod_uid or OTLP resource attributes.

{app="api"} | trace_id="4bf92f3577b34da6a3ce929d0e0e4736"

The OTLP ingestion endpoint maps most OpenTelemetry attributes into structured metadata and only a few (service.name, namespace) into index labels.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: ELK/EFK, Loki & Log Shippers