ibm-cloud-docs / log-analysis

Documentation repository for log-analysis
1 stars 10 forks source link

Docs need to better explain where to put exclusion configuration #7

Open jpapejr opened 3 years ago

jpapejr commented 3 years ago

https://cloud.ibm.com/docs/log-analysis?topic=log-analysis-exclude_logs_from_agent#exclude_logs_from_agent_kube_2

Refers to putting LOGDNA_EXCLUDE in the daemonset config for LogDNA agents but doesn't explain that the name/value yaml snippets need to be added to the environment variables section of the Pod Template Spec.

I.e.

 - name: LOGDNA_EXCLUDE
   value: /var/log/containers/*_kube-system_*,/var/log/containers/*ibm-observe_*,/var/log/containerd.log,/var/log/kubelet.log,/var/log/syslog,/var/log/ntpstats/*,/var/log/alb/*

Where is the the user supposed to put this exactly? Assuming under spec.template.spec.containers[*].env ?