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
Log receivers should be from source namespace only #882
Comments
the same issue on v1.0.19 - get the logs from all pods (/var/log/pods/*/*/*.log ) |
Hi @edwardwu |
Hi @edeNFed |
Hi @edwardwu After creating a new Go module and writing the processor, you will also need to update this YAML file for the collector to be aware of this new processor: Hope that helps, please let me know if you have any more questions. |
@edwardwu, I'm looking into making this a better experience. Current solution is clearly sub-optimal so the first idea is to narrow down the sources to only ones that have a specific label in k8s. That closes the flood and makes it usable. Second step in my mind would be to make it configurable in the UI or by some other means, but happy to hear your thoughts. |
Describe the bug
When choose the source from e.g. default namespace,
the filelog receciver should be use /var/log/pods/default_*/*/*.log instead of /var/log/pods/*/*/*.log
receivers:
filelog:
exclude:
- /var/log/pods/kube-system_*/*/*.log
include:
- /var/log/pods/default_*/*/*.log
include_file_name: false
include_file_path: true
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the logs should be from default namespace only
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: