rsyslog
  • About rsyslog
  • Getting Started with rsyslog
  • Configuration
    • Basic Structure
    • Output Modules
    • Input Modules
    • Parser Modules
    • Message Modification Modules
      • AI-based classification (mmaitag)
      • IP Address Anonymization Module (mmanon)
      • Linux Audit Log Parser (mmaudit)
      • mmcount
      • Darwin connector (mmdarwin)
      • MaxMind/GeoIP DB lookup (mmdblookup)
      • Support module for external message modification modules
      • Fields Extraction Module (mmfields)
      • JSON Structured Content Extraction Module (mmjsonparse)
        • Overview
        • Notable Features
        • Parsing Modes
        • Configuration Parameters
        • Check Parsing Result
        • Handling Parsing Failures
        • Statistics Counters
        • Processing Flow (informative)
        • Examples
        • See also
      • JSON Dotted Key Rewriter (mmjsonrewrite)
      • Purpose
      • Failure conditions
      • Configuration Parameters
      • Conflict handling
      • Examples
      • Troubleshooting
      • JSON Dotted Key Transformer (mmjsontransform)
      • Purpose
      • Failure conditions
      • Notable Features
      • Configuration Parameters
      • Transformation modes
      • Conflict handling
      • Examples
      • Troubleshooting
      • Kubernetes Metadata Module (mmkubernetes)
      • LEEF Structured Content Extraction Module (mmleefparse)
      • Purpose
      • Parsing Result
      • Configuration Parameters
      • Examples
      • Log Message Normalization Module (mmnormalize)
      • RFC5424 structured data parsing module (mmpstrucdata)
      • Configuration Parameters
      • mmrfc5424addhmac
      • mmrm1stspace: First Space Modification Module
      • Number generator and counter module (mmsequence)
      • mmsnareparse - NXLog Snare Windows Security parser
      • mmsnmptrapd message modification module
      • mmtaghostname: message modification module
      • Fix invalid UTF-8 Sequences (mmutf8fix)
    • String Generator Modules
    • Library Modules
    • Templates
    • rsyslog Properties
    • The Property Replacer
    • Filter Conditions
    • RainerScript
    • Actions
    • Input
    • Parser
    • timezone
    • Examples
    • Legacy Configuration Directives
    • rsyslog statistic counter
    • Modules
    • Output Channels
    • Dropping privileges in rsyslog
    • Notes on IPv6 Handling in Rsyslog
    • libgcrypt Log Crypto Provider (gcry)
    • libossl Log Crypto Provider (ossl)
    • Dynamic Stats
    • Lookup Tables
    • Percentile Stats
    • Converting older formats to advanced
    • Configuration Formats
    • sysklogd format
    • Additional Resources
    • Compatibility Note
  • FAQ
  • Tutorials
  • Troubleshooting
  • Concepts
  • Development
  • Reference
rsyslog
  • Configuration
  • Message Modification Modules
  • JSON Structured Content Extraction Module (mmjsonparse)
  • cookie
  • View page source

cookie

Defines the cookie string that must appear before the JSON content of a message.

This parameter applies to JSON 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.

Previous Next