How can I exclude pod logs from certain namespaces? #673
Replies: 3 comments 3 replies
-
Yes. If you're using the |
Beta Was this translation helpful? Give feedback.
-
Any examples or pointer? |
Beta Was this translation helpful? Give feedback.
-
(Hey there, I'm moving this to a discussion since this is a question) As Mario said, loki:
configs:
- name: default
scrape_configs:
- job_name: kubernetes-pods
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_namespace]
regex: default|kube-system
action: drop This will drop any discovered target whose namespace is default or kube-system. The full list of avalable meta labels for Kubernetes can be found in the configuration reference. |
Beta Was this translation helpful? Give feedback.
-
Using logging agent, is it possible to excludes pod logs from certain namespaces (default & kube-system)?
Beta Was this translation helpful? Give feedback.
All reactions