{"id":13521953,"url":"https://github.com/metrosystems-cpe/kubectl-utility","last_synced_at":"2025-03-31T22:30:23.674Z","repository":{"id":97658445,"uuid":"182734507","full_name":"metrosystems-cpe/kubectl-utility","owner":"metrosystems-cpe","description":"Utility tool for observing k8s resources.","archived":true,"fork":false,"pushed_at":"2019-10-09T22:09:31.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-02T06:31:00.692Z","etag":null,"topics":["audit","auditing","k8s","kubectl","kubectl-plugin","kubectl-plugins","kubernetes-plugin","logging","pod","python","python3","script","tail"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metrosystems-cpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-22T09:45:20.000Z","updated_at":"2023-12-12T09:29:27.000Z","dependencies_parsed_at":"2024-01-13T22:23:33.329Z","dependency_job_id":"c5cd2d54-85a7-4929-9f02-48e24fb36255","html_url":"https://github.com/metrosystems-cpe/kubectl-utility","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrosystems-cpe%2Fkubectl-utility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrosystems-cpe%2Fkubectl-utility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrosystems-cpe%2Fkubectl-utility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrosystems-cpe%2Fkubectl-utility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metrosystems-cpe","download_url":"https://codeload.github.com/metrosystems-cpe/kubectl-utility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552037,"owners_count":20795755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","auditing","k8s","kubectl","kubectl-plugin","kubectl-plugins","kubernetes-plugin","logging","pod","python","python3","script","tail"],"created_at":"2024-08-01T06:00:40.175Z","updated_at":"2025-03-31T22:30:23.360Z","avatar_url":"https://github.com/metrosystems-cpe.png","language":"Python","funding_links":[],"categories":["kubectl Plugins"],"sub_categories":["Installing plugins via awesome-kubectl-plugins"],"readme":"# Klogs\n\n## Description\n\nScript for monitoring and observing logs from k8s resources.\n\n## Usage\n\n```shell\n\nusage: klogs [-h] {audit,logs} ...\n\nUtility tool for observing kubernetes resources\n\npositional arguments:\n  {audit,logs}  Commands\n    audit       Audits the state of the resource specified\n    logs        Prints logs from multiple resources concurrently\n\noptional arguments:\n  -h, --help    show this help message and exit\n\n```\n\n```shell\n\nusage: klogs logs [-h] [-n \u003carg\u003e] [-i] [-v] [-ctx \u003cname\u003e] [-l \u003cnumber\u003e] [-f]\n                  [-hi] [-regx \u003c^some_word$\u003e]\n                  name\n\npositional arguments:\n  name                  Resource name\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n \u003carg\u003e, --namespace \u003carg\u003e\n                        Namespace\n  -i, --inverse         Does not container 'name'\n  -v, --verbose         Prints commands used\n  -ctx \u003cname\u003e, --context \u003cname\u003e\n                        Specify which context to use based on kube-config\n  -l \u003cnumber\u003e, --lines \u003cnumber\u003e\n                        No of lines to take from each log. Defaults to 1000\n  -f, --follow          Follows logs\n  -hi, --highlight      Will highlight errors and warnings\n  -regx \u003c^some_word$\u003e, --custom-regx \u003c^some_word$\u003e\n                        Will highlight output based on the regx provided\n\n```\n\n```\n\nusage: klogs audit [-h] [-n \u003carg\u003e] [-i] [-v] [-ctx \u003cname\u003e] [-ma \u003cminutes\u003e]\n                   name\n\npositional arguments:\n  name                  Resource name\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n \u003carg\u003e, --namespace \u003carg\u003e\n                        Namespace\n  -i, --inverse         Does not container 'name'\n  -v, --verbose         Prints commands used\n  -ctx \u003cname\u003e, --context \u003cname\u003e\n                        Specify which context to use based on kube-config\n  -ma \u003cminutes\u003e, --max-age \u003cminutes\u003e\n                        Will highlight pods that surpass the limit\n\n```\n\n## Examples\n\nGet one line from each pod's log \n\n```shell\n$ ./klogs logs --namespace kube-system --verbose apiserver --lines 2 --highlight\n```\n\n```shell\n$ ./klogs audit -v -n kube-system  -ctx prod -ma 100 apiserver \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrosystems-cpe%2Fkubectl-utility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetrosystems-cpe%2Fkubectl-utility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrosystems-cpe%2Fkubectl-utility/lists"}