Skip to content

Commit 7393a76

Browse files
authored
T-3673 [vector] Fix regex for matching MySQL logs (#15)
1 parent 8e778ac commit 7393a76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: betterstack-logs
3-
version: 1.1.4
3+
version: 1.1.5
44
dependencies:
55
- name: metrics-server
66
version: '>=0'

values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ vector:
196196
}
197197
198198
.mysql = parse_regex(.message, r'^(?P<dt>\d+-\d+-\d+T\d+:\d+:\d+\.\d+\w+)\s+(?P<thread>\d+)\s+\[(?P<priority>\S+)\]\s*\[(?P<error_code>\S+)\]\s*\[(?P<subsystem>\S+)\]\s*(?P<message>.*)') ??
199-
parse_regex(.message, r'#{'^(?P<dt>\d+-\d+-\d+T\d+:\d+:\d+\.\d+\w+)\s+(?P<id>\d+)\s+(?P<command>[^\t]+)(?:\s+(?P<message>.*))?'}') ??
199+
parse_regex(.message, r'^(?P<dt>\d+-\d+-\d+T\d+:\d+:\d+\.\d+\w+)\s+(?P<id>\d+)\s+(?P<command>[^\t]+)(?:\s+(?P<message>.*))?') ??
200200
{}
201201
202202
if .mysql != {} {

0 commit comments

Comments
 (0)