srcmetadatapath

Specifies the message property containing the original filename.

This parameter applies to Kubernetes Metadata Module (mmkubernetes).

Name:

srcmetadatapath

Scope:

action

Type:

word

Default:

$!metadata!filename

Required?:

no

Introduced:

at least 8.x, possibly earlier

Description

When reading json-file logs, with imfile and addmetadata=”on”, this is the property where the filename is stored.

Action usage

action(type="mmkubernetes" srcMetadataPath="$!metadata!filename")

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.