From 0fe600fd923b01aacb6f0264ed075416e888ba22 Mon Sep 17 00:00:00 2001 From: kirinnee Date: Wed, 27 Dec 2023 18:25:18 +0800 Subject: [PATCH] fix: missing filter in pipeline --- chart/collectors/container-logs.yaml | 3 ++- chart/collectors/otlp.yaml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/collectors/container-logs.yaml b/chart/collectors/container-logs.yaml index a8d8c8d..20ece88 100644 --- a/chart/collectors/container-logs.yaml +++ b/chart/collectors/container-logs.yaml @@ -163,6 +163,7 @@ processors: logs: log_record: - 'resource.attributes["drop_log"] == "true"' + - 'resource.attributes["k8s.daemonset.name"] == "konnectivity-agent"' exporters: loki: @@ -184,5 +185,5 @@ service: pipelines: logs: receivers: [ filelog ] - processors: [ k8sattributes, resource, attributes, batch ] + processors: [ k8sattributes, resource, attributes, filter, batch ] exporters: [ loki ] diff --git a/chart/collectors/otlp.yaml b/chart/collectors/otlp.yaml index afba406..29c93b1 100644 --- a/chart/collectors/otlp.yaml +++ b/chart/collectors/otlp.yaml @@ -81,7 +81,6 @@ processors: - action: insert key: loki.attribute.labels value: otel.source - resource: attributes: - key: container.id