# DynaTopic

Treat topic as a template for dynamic topic names.

This parameter applies to omkafka: write to Apache Kafka.

Name:

  DynaTopic

Scope:

  action

Type:

  boolean

Default:

  action=off

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

If set, the topic parameter becomes a template for which topic to produce messages to. The cache is cleared on HUP.

## Action usage

    action(type="omkafka" DynaTopic="on" Topic="topic.template")

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