Stages
This section is a collection of all stages Promtail supports in aPipeline.
Parsing stages:
- docker: Extract data by parsing the log line using the standard Docker format.
- cri: Extract data by parsing the log line using the standard CRI format.
- regex: Extract data using a regular expression.
- json: Extract data by parsing the log line as JSON.
Transform stages:
- template: Use Go templates to modify extracted data.
Action stages:
- timestamp: Set the timestamp value for the log entry.
- output: Set the log line text.
- labels: Update the label set for the log entry.
- metrics: Calculate metrics based on extracted data.
Filtering stages:
- match: Conditionally run stages based on the label set.