Skip to content

Commit 1a56851

Browse files
committed
fix alloy
1 parent 628d902 commit 1a56851

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/platform/templates/alloy-application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ alloy:
116116
}
117117
118118
stage.match {
119-
selector = "{pod=~\".+\"} |~ \"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z?\\s+\\S+\\s+\\S+\\s+(?:\\[[^\\]]*\\])?\\s+.*\""
119+
selector = "{pod=~\".+\"} |~ \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?Z?\\\\s+\\\\S+\\\\s+\\\\S+\\\\s+(?:\\\\[[^\\\\]]*\\\\])?\\\\s+.*\""
120120
121121
stage.regex {
122122
expression = "(?s)(?P<timestamp>\\S+)\\s+(?P<level>\\S+)\\s+(?P<logger>\\S+)\\s+(?:\\[(?P<context>[^\\]]*)\\])?\\s+(?P<message>.*)"

charts/platform/tests/__snapshot__/alloy-application_test.yaml.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ should match snapshot:
126126
}
127127

128128
stage.match {
129-
selector = "{pod=~\".+\"} |~ \"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z?\\s+\\S+\\s+\\S+\\s+(?:\\[[^\\]]*\\])?\\s+.*\""
129+
selector = "{pod=~\".+\"} |~ \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?Z?\\\\s+\\\\S+\\\\s+\\\\S+\\\\s+(?:\\\\[[^\\\\]]*\\\\])?\\\\s+.*\""
130130

131131
stage.regex {
132132
expression = "(?s)(?P<timestamp>\\S+)\\s+(?P<level>\\S+)\\s+(?P<logger>\\S+)\\s+(?:\\[(?P<context>[^\\]]*)\\])?\\s+(?P<message>.*)"

0 commit comments

Comments
 (0)