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.
More on Logging: ELK/EFK, Loki & Log Shippers
What is the ELK stack, and what is EFK?BeginnerHow does Elasticsearch store and search logs?IntermediateWhat is ILM (Index Lifecycle Management) and why do log clusters need it?IntermediateWhat is an Elasticsearch data stream?AdvancedWhat is an index template and mapping, and what is a mapping explosion?AdvancedWhat does Logstash do compared with Beats?Intermediate