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.
Set an alias:
alias klogs="python /path/to/klogs.py"
Then:
klogs -n giantswarm -l app=aws-operator -s
- 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)