Loki Labels Reference ΒΆ

In Grafana Loki, logs are stored as key-value pairs called labels. Labels are used to filter, aggregate, and search for logs and can be used in LogQL queries to search for logs by message, by field, or by a combination of both.

The following labels are available in Grafana Loki by default:

FieldDescriptionApplicable to
detected_levelThe log level detected by the log parser.All
service_nameThe name of the application that generated the log line.All
service_namespaceThe namespace of the application that generated the log line.All
k8s_container_nameThe name of the Kubernetes container that generated the log line.Kubernetes
k8s_pod_nameThe name of the Kubernetes pod that generated the log line.Kubernetes
k8s_node_nameThe name of the Kubernetes node that generated the log line.Kubernetes
k8s_cluster_nameThe name of the Kubernetes cluster that generated the log line.Kubernetes
collector_nameThe name of the log collector that ingested the log line.All
kindThe kind of log line. Can be exception, event log or measurement,Faro SDK