Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?<time>[^ ]*) +(?<source>[a-zA-Z0-9_\.\-]+) +(?<message>.*)$
/
gm

Description

A generic expression to capture any log generated by K8s components in an environment running banzai logging (fluentd/fluentbit)

Submitted by TJ - 10 months ago