Open
Description
What would you like to be added:
I would like a new option that would allow filtering of logs, client side:
kubectl logs --filter "error" guestbook
Why is this needed:
In the context of LLMs, when trying to debug K8s issues using kubectl
as a tool, it would be useful to be able to filter the logs for specific words of patterns, to reduce the output size.
Running kubectl
in a shell and pipe the output to grep
or something similar is not always possible.
This would also make it easier to use cross-platform.