Closed mrjamiebowman closed 2 years ago
@mrjamiebowman Good to know you've tried kubectl-grep
. 🎉
However, kubectl-grep
was designed to filter out Kubernetes native resources
, but not log output which generated by applications
running on Kubernetes.
To filter out log lines with condition (namespace, keyword, ...), I'd suggest you to try the following awesome projects:
If you love those projects, don't forget to give them a star ⭐
It would be incredibly beneficial to grep logs.
I'm currently having to get logs based on pod labels. Would be really nice if I could see all of the logs based on a grep command.
kubectl grep logs -n namespace service-a