# Partitions.Auto

Use librdkafka’s automatic partitioning.

This parameter applies to omkafka: write to Apache Kafka.

Name:

  Partitions.Auto

Scope:

  action

Type:

  boolean

Default:

  action=off

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

Librdkafka provides an automatic partitioning function that distributes messages into all partitions configured for a topic.

## Action usage

    action(type="omkafka" Partitions.Auto="on")

## Notes

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

- Overrides other partitioning settings when enabled.

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