reportFailures

Controls whether an error is logged for each message that cannot be transformed.

This parameter applies to mmjsontransform: JSON Dotted Key Transformer.

Name:

reportFailures

Scope:

input

Type:

boolean

Default:

on

Required?:

no

Introduced:

8.2612.0

Description

When a message cannot be transformed, for example when the input is not a JSON object, the output already exists or two keys conflict, the action leaves it unchanged and logs an error that tells why. A missing input property is not an error: the message is left unchanged and nothing is logged.

Malformed messages can then flood the internal log, or use up the internal message rate limit and hide other errors. With reportFailures="off", these errors are only shown in the debug output. Configuration and policy file errors, and unexpected errors such as an out of memory, are always logged. The $parsesuccess variable still tells whether a message was transformed, "FAIL" for a missing input too.

Input usage

action(type="mmjsontransform" input="$!raw" output="$!event"
       reportFailures="off")
modules:
  - load: mmjsontransform
rulesets:
  - name: main
    actions:
      - type: mmjsontransform
        input: "$!raw"
        output: "$!event"
        reportFailures: "off"

See also

See also the main mmjsontransform module documentation.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.