8000 Add option to filter `kubectl logs` output · Issue #1747 · kubernetes/kubectl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add option to filter kubectl logs output #1747
Open
@hakman

Description

@hakman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0