# containerrulebase

Specifies the rulebase file used to parse `CONTAINER_NAME` values.

This parameter applies to Kubernetes Metadata Module (mmkubernetes).

Name:

  containerrulebase

Scope:

  action

Type:

  word

Default:

  /etc/rsyslog.d/k8s_container_name.rulebase

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

When processing journald logs, this is the rulebase used to match the CONTAINER_NAME property value and extract metadata. For the actual rules, see containerrules.

## Action usage

    action(type="mmkubernetes" containerRuleBase="/etc/rsyslog.d/k8s_container_name.rulebase")

## 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.