# failedMsgFile

File that stores messages saved by KeepFailedMessages.

This parameter applies to omkafka: write to Apache Kafka.

Name:

  failedMsgFile

Scope:

  action

Type:

  word

Default:

  action=none

Required?:

  no

Introduced:

  8.28.0

## Description

Added in version 8.28.0.

Filename where the failed messages should be stored. Must be set when `KeepFailedMessages` is enabled.

## Action usage

    action(type="omkafka" failedMsgFile="/var/spool/rsyslog/failed.kafkamsgs")

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