-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
Description
Problem
Currently, when using the Datadog Operator, there is no direct way to define global log processingRules
(such as exclude_at_match
) within the DatadogAgent
Custom Resource Definition (CRD).
To filter or exclude certain logs across the entire cluster (e.g., health checks, debug logs), we have to rely on Pod annotations for every application. This approach is not scalable and makes it difficult to enforce a consistent, global logging policy.
Feature Request
I would like to request the addition of a processingRules
field within the DatadogAgent
CRD, ideally under the spec.features.logCollection
section.
This would allow users to define global log processing rules that are applied by the agent on every node.
Example of desired configuration:
# kind: DatadogAgent
# apiVersion: [datadoghq.com/v2alpha1](https://datadoghq.com/v2alpha1)
...
spec:
features:
logCollection:
enabled: true
containerCollectAll: true
# This is the proposed new field
processingRules:
- type: "exclude_at_match"
name: "exclude_health_checks_globally"
pattern: "GET /healthz"
- type: "mask_sequences"
name: "mask_credit_cards"
pattern: 'visa'
replace_placeholder: '[CREDIT_CARD_REMOVED]'
SilvM