mode¶
Chooses whether dotted keys are expanded or flattened during processing.
This parameter applies to JSON Dotted Key Transformer (mmjsontransform).
- Name:
mode
- Scope:
input
- Type:
string
- Default:
unflatten
- Required?:
no
- Introduced:
8.2410.0
Description¶
Controls the transformation direction used by mmjsontransform
:
unflatten
(default)Expands dotted keys into nested containers. See Unflatten dotted keys for details.
flatten
Collapses nested containers back into dotted keys. See Flatten nested containers for the full description.
The comparison is case-insensitive. Omitting the parameter or providing an
empty string selects unflatten
. Any other value triggers a configuration
error.
Input usage¶
action(type="mmjsontransform" mode="flatten"
input="$!normalized" output="$!normalized_flat")
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–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.