guessi / kubectl-grep

Filter Kubernetes resources by matching their names
Apache License 2.0
114 stars 8 forks source link

grep Logs #36

Closed mrjamiebowman closed 2 years ago

mrjamiebowman commented 3 years ago

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

guessi commented 3 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 ⭐