how can I disable logs collection for all pods exc...
# general
d
how can I disable logs collection for all pods except 1. e.g. I want to collect logs for only karpenter pods and nothing else
d
I checked it, so if I enable whitelist, only whitelisted logs will be collected, right?
s
yes,
d
thanks for confirming
Copy code
k8s-infra:
  presets:
    logsCollection:
      enabled: true
      whitelist:
        # whether to enable whitelisting
        enabled: true
        # whether to include signoz logs
        signozLogs: false
        # which namespaces to include
        namespaces:
          - karpenter
        # which pods to include
        pods:
          - karpenter  # all pods with karpenter prefix
I added this config, but helm upgrade timed out, is there any issue with this config
okay it worked after adding other 2 fields