# statsFile

Write librdkafka statistics JSON to this file.

This parameter applies to omkafka: write to Apache Kafka.

Name:

  statsFile

Scope:

  action

Type:

  word

Default:

  action=none

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

If set, the JSON statistics from librdkafka are written to the specified file. Updates occur based on the `statistics.interval.ms` confParam value.

## Action usage

    action(type="omkafka" statsFile="/var/log/omkafka-stats.json")

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