Podtail is a Go port of Johan Haleby's kubetail utilty which now also allows Windows users to aggregate (tail/follow) logs from multiple pods into one stream.
This is the same as running kubectl logs -f <pod>
but for multiple pods.
The following checklist details which flags/options are currently supported:
-
-h, --help
-
-c, --container
-
-t, --context
-
-l, --selector
-
-n, --namespace
-
-s, --since
-
-b, --line-buffered
-
-e, --regex
-
-j, --jq
-
-k, --colored-output
-
-z, --skip-colors
-
--timestamps
-
--tail
-
-v, --version
Please raise an issue if theres an unimplemented flag you need support for.
Podtail currently wraps the kubectl
command which you need to have installed in order to use podtail
.
Please refer to the Kubernetes documentation for information on how to install kubectl
for your specific OS.
You use Brew to install the client as follows:
$ brew tap johnmccabe/podtail && brew install podtail
Just download podtail.exe
from the Github Releases page and copy it to a location on your %PATH%
.
Just download podtail.tgz
from the Github Releases page, extract and copy it to a location on your $PATH
.
Details of the support flags etc can be seen using the --help
flag.
podtail --help
Note that if kubectl
isn't on the path you can explicitly point to it with the --kubectl
flag, also if your Kube cluster config isn't in the standard ~/.kube/config
location you can point to an explicit location with the --kubeconfig
flag.
Some example commands include:
podtail my-pod-v1
podtail my-pod-v1 -t int1-context
podtail '(service|consumer|thing)' -e regex
podtail -l service=my-service
podtail --selector service=my-service --since 10m
podtail --tail 1
podtail gateway --kubectl C:/Kubernetes/bin/kubectl --kubeconf ./myconfig