-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to restrict which logs are collected. (#244)
Fixes #226 This PR proposes to add a `-l` flag so that the log collection can be restricted with a label selector. e.g ``` # collect everything but only the logs from the es-es-mixed-v2-0 pod eck-diagnostics -r my-ns -l statefulset.kubernetes.io/pod-name=es-es-mixed-v2-0 ``` or combined with a type filter ``` # collect everything from the Elasticsearch cluster called es but logs only from the es-es-mixed-v2-0 pod eck-diagnostics -r my-ns -l statefulset.kubernetes.io/pod-name=es-es-mixed-v2-0 -f elasticsearch=es ``` Operator logs are always collected and this cannot be turned off. The implementation is somewhat different from the proposal in #226 but I felt like a label selector was a natural choice for this kind of filtering on k8s.
- Loading branch information
Showing
7 changed files
with
535 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.