errorFile

Write failed messages to this JSON file.

This parameter applies to omkafka: write to Apache Kafka.

Name:

errorFile

Scope:

action

Type:

word

Default:

action=none

Required?:

no

Introduced:

at least 8.x, possibly earlier

Description

If set, messages that could not be sent are written to the specified file. Each entry is JSON and contains the full message plus the Kafka error number and reason.

Action usage

action(type="omkafka" errorFile="/var/log/omkafka-error.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.