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

Filebeat Kubernetes metadata is not optional #7252

Closed
shane99a opened this issue Jun 4, 2018 · 4 comments
Closed

Filebeat Kubernetes metadata is not optional #7252

shane99a opened this issue Jun 4, 2018 · 4 comments
Labels
bug containers Related to containers use case Filebeat Filebeat :Processors

Comments

@shane99a
Copy link

shane99a commented Jun 4, 2018

Report:

Steps to Reproduce:

  • Add kubernetes metadata config to filebeat. Create a service account that CANNOT read the k8s api. Check if the logs get sent without the metadata
  • What will happen is the logs do not get sent
  • You have to modify the service account to access the api and then it will send those logs

I am testing this in minikube. I believe the logs should be sent, but without the metadata. Let me know if this is expected or not. This is the error Filebeat will throw when it cant access the api:

{"time":"2018-06-01T16:32:04.950783-04:00","log":"2018-06-01T20:32:04.950Z#011INFO#011kubernetes\/watcher.go:140#011kubernetes: Watching API for pod events"}
{"time":"2018-06-01T16:32:04.951133-04:00","log":"2018-06-01T20:32:04.950Z#011ERROR#011kubernetes\/watcher.go:145#011kubernetes: Watching API error kubernetes api: Failure 403 pods is forbidden: Ubeat-user\" cannot watch pods at the cluster scope"}
{"time":"2018-06-01T16:32:04.951374-04:00","log":"2018-06-01T20:32:04.950Z#011INFO#011kubernetes\/watcher.go:140#011kubernetes: Watching API for pod events"}
{"time":"2018-06-01T16:32:04.952057-04:00","log":"2018-06-01T20:32:04.951Z#011ERROR#011kubernetes\/watcher.go:145#011kubernetes: Watching API error kubernetes api: Failure 403 pods is forbidden: Ubeat-user\" cannot watch pods at the cluster scope"}
@exekias exekias added bug Filebeat Filebeat containers Related to containers use case :Processors labels Jun 4, 2018
@shane99a
Copy link
Author

shane99a commented Jun 4, 2018

All right good news. I updated to version 6.2.4, and its no longer an issue. However I would love it if someone can confirm who worked on Filebeat that this was indeed fixed in that version. I can feel confident in closing this ticket then. Thank you.

@shane99a shane99a closed this as completed Jun 4, 2018
@exekias
Copy link
Contributor

exekias commented Jun 4, 2018

ey @shane99a, you were probably suffering from this issue: #6504

Thank you for the report, and confirming the fix, sorry for the inconveniences

@shane99a
Copy link
Author

shane99a commented Jun 4, 2018

Hi, @exekias thanks for responding. I probably should have updated that I no longer have this issue even on 6.2.3. If the ticket linked above is an issue that only happens sometimes, then it probably makes sense why it wasn't working before and suddenly it worked again. Do you recommend I upgrade to 6.2.4 just to be safe?

@exekias
Copy link
Contributor

exekias commented Jun 4, 2018

Yes, I definitely recommend using 6.2.4 here, as 6.2.3 can cause issues like that (for instance when your API server is restarted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug containers Related to containers use case Filebeat Filebeat :Processors
Projects
None yet
Development

No branches or pull requests

2 participants