Regular Expressions 101

Community Patterns

1...34567...585

cri logfmt

0

Regular Expression
Golang

`
^(?s)(?P<time>\S+?) (?P<stream>stdout|stderr) (?P<flags>\S+?) (?P<content>.*)$
`
gms

Description

The CRI expr will match and parse log lines of this format:

2019-01-01T01:00:00.000000001Z stderr P some log message
Submitted by east4ming - 2 years ago