.. SPDX-License-Identifier: Apache-2.0 .. meta:: :description: The mmjsontransform reportFailures parameter controls whether messages that cannot be transformed are logged. :keywords: rsyslog, mmjsontransform, reportFailures, error logging, parsesuccess .. _param-mmjsontransform-reportfailures: .. _mmjsontransform.parameter.input.reportfailures: reportFailures ============== .. index:: single: mmjsontransform; reportFailures single: reportFailures .. summary-start Controls whether an error is logged for each message that cannot be transformed. .. summary-end This parameter applies to :doc:`../../configuration/modules/mmjsontransform`. :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 ----------- .. _param-mmjsontransform-reportfailures-usage: .. _mmjsontransform.parameter.input.reportfailures-usage: .. code-block:: rsyslog action(type="mmjsontransform" input="$!raw" output="$!event" reportFailures="off") .. code-block:: yaml modules: - load: mmjsontransform rulesets: - name: main actions: - type: mmjsontransform input: "$!raw" output: "$!event" reportFailures: "off" See also -------- See also the :doc:`main mmjsontransform module documentation <../../configuration/modules/mmjsontransform>`.