Skip to content

Commit

Permalink
Update Migrate from Operator task, collect logs example (#6599) (#6618)
Browse files Browse the repository at this point in the history
* Update collect logs example

* Correct spacing in River file

(cherry picked from commit b401685)

Co-authored-by: Clayton Cornell <[email protected]>
  • Loading branch information
grafanabot and clayton-cornell authored Mar 5, 2024
1 parent b5bf644 commit 048c587
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/sources/flow/tasks/migrate/from-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ discovery.relabel "pod_logs" {
replacement = "/var/log/pods/*$1/*.log"
target_label = "__path__"
}
rule {
action = "replace"
source_labels = ["__meta_kubernetes_pod_container_id"]
regex = "^(\\w+):\\/\\/.+$"
replacement = "$1"
target_label = "tmp_container_runtime"
}
}
local.file_match "pod_logs" {
Expand Down

0 comments on commit 048c587

Please sign in to comment.