Regular Expressions 101

Kafka loki parser

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 - 9 months ago