-
Notifications
You must be signed in to change notification settings - Fork 289
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
Output Filtering #742
Comments
The Extra effort was required to ensure the text filter is resilient, works with edge cases and can be run from different contexts.
Follow up tickets@lpetkov @brampling would appreciate your input. Advanced filtering than simple string matchingThis includes filters that use RegEx, grep-style syntax, etc... A bit of work is required to add this. Also, these format can be triggered by supplying an extra flag. E.g. Specifically,
Further filteringCurrently, interactive filtering offers the ability to re-filter the original output. Having run this a few times on Slack, the perceived expected behaviour was to further filter on the output from the original filter. Supporting this will require some minor investigation. |
Reopening until we have a last missing piece: documentation 🙂 |
Documentation now in review. |
Documentation is complete. |
A user must be able to filter output from BotKube executor commands (e.g. kubectl) with simple string matching. This should be analogous to how users use grep when running kubectl from the command line. grep and grep-like syntax are not requirements.
AC
Nice to have: more advanced filtering than simple string matching (e.g. RegEx, grep-style syntax, etc.). This should only be implemented if it comes from an existing package and we can do it with a clean UX.
Notes
- Dedicated flag (
@botkube kubectl logs <pod> --filter 'grep string and maybe params'
)Piping@botkube kubectl logs <pod> | filter "str"
grep
functionalitygrep
for now / or instead of using binary, use some existing Go libraryThe text was updated successfully, but these errors were encountered: