This is documentation for the next version of Enterprise logs. For the latest stable release, go to the latest version.
The static_labels stage is an action stage that adds static-labels to the label set that is sent to Loki with the log entry.
static_labels: [ <string>: [<string>] ... ]
For the given pipeline:
- json: expressions: stream: stream - labels: stream: - static_labels: custom_key: custom_val
Given the following log line:
The first stage would extract
stream into the extracted map with a value of
labels stage would turn that key-value pair into a label. The
static_labels stage would add the provided static labels into the label set.
The resulting entry that is sent to Loki will contain
custom_key="custom_val" as labels.
Related Enterprise Logs resources
Grafana Enterprise Logs: Logging with security and scale
Join us for this webinar, which will cover: Challenges with logging as organizations scale and the volume of logs explodes, how Grafana Enterprise Logs enables organizations to make logs available to any team members who need them, features available in GEL and how to get access, a live product demo so you can see GEL for the first time
VIDEO: Watch this first-look demo of the new Grafana Enterprise Logs
Based on Loki, Grafana Enterprise Logs is part of the Grafana Enterprise Stack for composing and scaling observability on your own infrastructure.
Introducing Grafana Enterprise Logs, a core part of the Grafana Enterprise Stack integrated observability solution
Powered by the Loki open source project, the Enterprise Logs offering joins metrics and dashboards in our enterprise-ready stack for self-managed observability.