# DynaKey

Treat key as a template for dynamic partition keys.

This parameter applies to omkafka: write to Apache Kafka.

Name:

  DynaKey

Scope:

  action

Type:

  boolean

Default:

  action=off

Required?:

  no

Introduced:

  8.1903

## Description

If set, the key parameter becomes a template for the key to base the partitioning on.

## Action usage

    action(type="omkafka" DynaKey="on" Key="keytemplate")

## Notes

- Originally documented as “binary”; uses boolean values.

## See also

See also omkafka: write to Apache Kafka.

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.