Skip to content

Commit 95eb264

Browse files
authored
fix(alloy-for-logs): modify kubernetes-podlogs-alloy-configmap
1 parent 27283d2 commit 95eb264

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

collecting-logs-with-alloy/kubernetes-podlogs-alloy-configmap.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ data:
5252
loki.process "pod_logs" {
5353
stage.match {
5454
selector = "{namespace=\"myapp\"}"
55-
stage.cri {}
55+
stage.regex {
56+
expression = "(?P<method>GET|PUT|POST|DELETE)"
57+
}
5658
stage.labels {
5759
values = {
58-
flags = "",
59-
stream = "",
60+
method = "",
6061
}
6162
}
6263
}

0 commit comments

Comments
 (0)