https://github.com/cinarmert/klogs
A tool to view multiple Kubernetes pod/container logs in the same terminal session
https://github.com/cinarmert/klogs
kubernetes logger logging terminal
Last synced: 5 months ago
JSON representation
A tool to view multiple Kubernetes pod/container logs in the same terminal session
- Host: GitHub
- URL: https://github.com/cinarmert/klogs
- Owner: cinarmert
- License: apache-2.0
- Created: 2020-06-17T21:15:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T12:54:56.000Z (almost 6 years ago)
- Last Synced: 2024-11-26T13:44:10.154Z (over 1 year ago)
- Topics: kubernetes, logger, logging, terminal
- Language: Go
- Homepage:
- Size: 5.85 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://goreportcard.com/report/github.com/cinarmert/klogs)

# `klogs`
**`klogs`** helps you view logs from multiple kubernetes pods and containers inside the pods. You can provide a regex to filter the pods/containers that the logs will be fetched from.

**`klogs`** is a minimalistic cli tool. See the usage below!
```
Klogs provides a user interface for the logs from multiple Kubernetes pods/containers.
Usage:
klogs POD-QUERY [flags]
Flags:
-c, --container string Regex to specify the containers to fetch logs from (default ".*")
-x, --context string Kubernetes context to use, default is $(kubectl config current-context)
-h, --help help for klogs
-k, --kubeconfig string Kubeconfig file path
-n, --namespace string Kubernetes namespace to use, uses current namespace if not specified
-v, --verbose print debug logs
```
# Installation
**`klogs`** is available on macOS, Linux and Windows. You can find the binaries in [**Releases →**](https://github.com/cinarmert/klogs/releases).
## Brew
**`klogs`** is already available in Homebrew for an easier installation.
```
brew tap cinarmert/klogs
brew install klogs
```
# Similar Projects
- [doclogs](https://github.com/cinarmert/doclogs)
- [stern](https://github.com/wercker/stern)