jim-minter / k8slog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8slog

Jim Minter, 11 January 2024

go install github.com/jim-minter/k8slog@latest
k8slog -n namespace [-c container_regexp] [-s source_regexp] [-since duration] | less -S

Tabulate JSON container logs. Logs can be filtered by container regexp, "source" JSON tag regexp and recency. The -S option of less can be used to browse the results.

If present, the following fields are moved to lead the tabulated columns:

  • timestamp
  • level
  • filename
  • linenumber
  • msg

About

License:MIT License


Languages

Language:Go 100.0%