rsyslog/tests/imfile-endmsg.regex.json.rulebase
Rich Megginson c902a0938f imfile: support for endmsg.regex
This adds support for endmsg.regex.  It is similar to
startmsg.regex except that it matches the line that denotes
the end of the message, rather than the start of the next message.
This is primarily for container log file use cases such as this:

    date stdout P start of message
    date stdout P  middle of message
    date stdout F  end of message

The `F` means this is the line which contains the final part of
the message.  The fully assembled message should be
`start of message middle of message end of message`.
`startmsg.regex="^[^ ]+ stdout F "` will match.
2018-09-11 20:01:47 -06:00

10 lines
312 B
Plaintext

version=2
rule=:%{"name":"multilinejson", "type":"repeat", "option.permitMismatchInParser": true,
"parser":[
{"type":"json", "name":"."}
],
"while":[
{"type":"char-sep", "extradata":"{"}
]
}%