Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Golang

`
\[(?P<timestamp>\d+-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})\] (?P<level>[A-Z]+) \[(?P<context>.+?)\] (?P<msg>.+) \((?P<logger>.+)\)
`
gm

Description

Kafka loki parser

Submitted by anonymous - a year ago