Skip to content

#golang port of kubetail to tail Kubernetes logs from multiple pods at the same time, works on windows, osx and linux

License

Notifications You must be signed in to change notification settings

johnmccabe/podtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Podtail

Build Status Go Report Card GitHub (pre-)release

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.

Compatibility with kubetail

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.

Installation

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.

OSX

You use Brew to install the client as follows:

$ brew tap johnmccabe/podtail && brew install podtail

Windows

Just download podtail.exe from the Github Releases page and copy it to a location on your %PATH%.

Linux

Just download podtail.tgz from the Github Releases page, extract and copy it to a location on your $PATH.

Usage

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

About

#golang port of kubetail to tail Kubernetes logs from multiple pods at the same time, works on windows, osx and linux

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published