Skip to content

Commit

Permalink
adding filter processor in receiver and collector
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashankft9 committed Aug 17, 2023
1 parent 9f702ef commit 22d48c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions example/collector-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.81.0

replaces:
- github.com/kubearmor/OTel-receiver/kubearmor_receiver => ../kubearmor_receiver
Expand Down
10 changes: 8 additions & 2 deletions example/collector-k8-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ spec:
verbosity: detailed
loki:
endpoint: "http://loki.default.svc:3100/loki/api/v1/push"
processors:
filter/ottl:
error_mode: ignore
logs:
log_record:
- 'not (IsMatch(body, ".*Permission denied.*"))'
service:
pipelines:
logs:
receivers:
- kubearmor_receiver
processors: []
processors:
- filter/ottl
exporters:
- loki
- logging
Expand Down

0 comments on commit 22d48c8

Please sign in to comment.