cookie¶
Defines the cookie string that must appear before the JSON content of a message.
This parameter applies to JSON/CEE Structured Content Extraction Module (mmjsonparse).
- Name:
cookie
- Scope:
input
- Type:
string
- Default:
@cee:
- Required?:
no
- Introduced:
6.6.0
Description¶
Permits setting the cookie that must be present in front of the JSON part of the message.
Most importantly, this can be set to the empty string (“”) to not require any cookie. In this case, leading spaces are permitted in front of the JSON. No characters, including whitespace, are permitted after the JSON object. If trailing characters must be handled, a tool like the mmnormalize module can be used.
Input usage¶
action(type="mmjsonparse" cookie="")
See also¶
See also the main mmjsonparse 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.