# annotation_match

Selects pod or namespace annotations whose keys match given patterns.

This parameter applies to Kubernetes Metadata Module (mmkubernetes).

Name:

  annotation_match

Scope:

  action

Type:

  array

Default:

  none

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

By default no pod or namespace annotations will be added to the messages. This parameter is an array of patterns to match the keys of the annotations field in the pod and namespace metadata to include in the $!kubernetes!annotations (for pod annotations) or the $!kubernetes!namespace_annotations (for namespace annotations) message properties. Example: [“k8s.*master”,”k8s.*node”]

## Action usage

    action(type="mmkubernetes" annotationMatch="...")

## See also

See also Kubernetes Metadata Module (mmkubernetes).

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.