Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclusion not working #571

Open
stdmje opened this issue Oct 16, 2023 · 2 comments
Open

Exclusion not working #571

stdmje opened this issue Oct 16, 2023 · 2 comments

Comments

@stdmje
Copy link

stdmje commented Oct 16, 2023

I am trying to include all logs from a specific namespace but excluding the pods with a label and is not working.

extraEnv:
  - name: LOGDNA_K8S_METADATA_LINE_INCLUSION
    value: namespace:vcluster-ihq-demos
  - name: LOGDNA_K8S_METADATA_LINE_EXCLUSION
    value: "label.vcluster.loft.sh/namespace:kube-system"

I can see all the logs from the pods of that namespace including the ones with that label.

Am i missing something?

Thanks for the help

@dkhokhlov
Copy link
Contributor

dkhokhlov commented Oct 16, 2023

@stdmje
try to separate label and namespace in value:

"namespace:some-namespace,label.app.kubernetes.io/name:some-label"

@stdmje
Copy link
Author

stdmje commented Nov 23, 2023

Hey @dkhokhlov sorry for the late reply.

I have tried different combinations with no luck. If i include the namespace in LOGDNA_K8S_METADATA_LINE_EXCLUSION it skips all the logs from containers in that namespace, and i only want to exclude some of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants