Kubernetes logs viewer supports streaming from several containers and json logs parsing.
- parses json logs and outputs its in more human friendly format
- supports streaming logs from several containers
- monitors kubernetes and dynamically adds and removes containers
git clone https://github.com/gavrilaf/k8logx.git
go build
./k8logx
If runned without params utility starts stream logs for the all pods and all containers in the current context.
Supports config files in yaml format:
---
namespace: "default"
seconds-before: 600
pods:
- api:
pattern: "api-deployment"
containers:
- api:
pattern: "api-app"
fields-order:
- ["method", "uri", "status", "latency"]
- ["sql"]
- dispatcher:
pattern: "dispatcher-deployment"
containers:
- dispatcher:
pattern: "dispatcher"
namespace
- kube namespace for monitoringseconds-before
- since seconds from nowpods
- you can define pods you want to monitor (if section is empty k8logx will monitor all available pods)fields-order
- you are able to define fields output order line by line