---
title: "labeldrop | Grafana Loki documentation"
description: "The 'labeldrop' Promtail pipeline stage."
---

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

# labeldrop

The labeldrop stage is an action stage that drops labels from the label set that is sent to Loki with the log entry.

## Schema

YAML ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```yaml
labeldrop:
  - [<string>]
  ...
```

### Examples

For the given pipeline:

YAML ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```yaml
- replace:
    expression: "(.*)"
    replace: "pod_name:{{ .kubernetes_pod_name }} {{ .Value }}"
- labeldrop:
    - kubernetes_pod_name
```

Given the following log line:

![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```none
log message\n
```

The first stage would append the value of the`kubernetes_pod_name` label into the beginning of the log line. The labeldrop stage would drop the label from being sent to Loki, and it would now be part of the log line instead.
