Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
/ klogs Public archive

Tiny wrapper for "kubectl logs" written in Python

License

Notifications You must be signed in to change notification settings

giantswarm/klogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

klogs

Wrapper for "kubectl logs" with the one benefit that you never have to try --previous manually, as klogs does this for you.

As a result, klogs returns all log entries that are available.

Usage

Set an alias:

alias klogs="python /path/to/klogs.py"

Then:

klogs -n giantswarm -l app=aws-operator -s

Future ideas

  • Support execution in a docker container
  • Output formatting. E. g. colorize timestamps, format and indent JSON log entries
  • Filter by time, similar to --since or --since-time of kubectl.
  • Make the kubectl version to use selectable (or even auto-detect based on server version)

About

Tiny wrapper for "kubectl logs" written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages