---
title: "Promtail pipeline stages | Grafana Loki documentation"
description: "Overview of the Promtail pipeline stages."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Promtail pipeline stages

This section is a collection of all stages Promtail supports in a [Pipeline](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/pipelines/).

Parsing stages:

- [docker](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/docker/): Extract data by parsing the log line using the standard Docker format.
- [cri](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/cri/): Extract data by parsing the log line using the standard CRI format.
- [regex](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/regex/): Extract data using a regular expression.
- [json](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/json/): Extract data by parsing the log line as JSON.
- [logfmt](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/logfmt/): Extract data by parsing the log line as logfmt.
- [replace](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/replace/): Replace data using a regular expression.
- [multiline](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/multiline/): Merge multiple lines into a multiline block.
- [geoip](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/geoip/): Extract geoip data from extracted labels.

Transform stages:

- [template](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/template/): Use Go templates to modify extracted data.
- [pack](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/pack/): Packs a log line in a JSON object allowing extracted values and labels to be placed inside the log line.
- [decolorize](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/decolorize/): Strips ANSI color sequences from the log line.

Action stages:

- [timestamp](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/timestamp/): Set the timestamp value for the log entry.
- [output](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/output/): Set the log line text.
- [labeldrop](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/labeldrop/): Drop label set for the log entry.
- [labelallow](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/labelallow/): Allow label set for the log entry.
- [labels](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/labels/): Update the label set for the log entry.
- [limit](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/limit/): Limit the rate lines will be sent to Loki.
- [sampling](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/sampling/): Sampling the lines will be sent to Loki.
- [static\_labels](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/static_labels/): Add static-labels to the log entry.
- [metrics](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/metrics/): Calculate metrics based on extracted data.
- [tenant](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/tenant/): Set the tenant ID value to use for the log entry.
- [structured\_metadata](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/structured_metadata/): Add structured metadata to the log entry.

Filtering stages:

- [match](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/match/): Conditionally run stages based on the label set.
- [drop](https://grafana.com/docs/loki/v2.9.x/send-data/promtail/stages/drop/): Conditionally drop log lines based on several options.
