All Projects → eduardobaitello → kubelogs

eduardobaitello / kubelogs

Licence: MIT license
Interactively dump logs from multiple Kubernetes containers.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to kubelogs

log
A simple to use log system, minimalist but with features for debugging and differentiation of messages
Stars: ✭ 21 (+40%)
Mutual labels:  log
app-application-logger
A small standalone Windows application to log the applications one is using
Stars: ✭ 13 (-13.33%)
Mutual labels:  log
kubectl-whoami
This plugin gets the subject name using the effective kubeconfig
Stars: ✭ 74 (+393.33%)
Mutual labels:  kubectl
kubeswitch
visually select kubernetes context/namespace from tree
Stars: ✭ 15 (+0%)
Mutual labels:  kubectl
logs-monitor
An application like Linux tail for Windows. Using Windows FindFirstChangeNotification API to monitoring file changes.
Stars: ✭ 43 (+186.67%)
Mutual labels:  log
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (+73.33%)
Mutual labels:  log
XLog
一个简易的日志打印框架(支持打印策略自定义,默认提供2种策略:logcat打印和磁盘打印)
Stars: ✭ 33 (+120%)
Mutual labels:  log
GoogleCloudLogging
Swift (Darwin) library for logging application events in Google Cloud.
Stars: ✭ 24 (+60%)
Mutual labels:  log
ardupilog
A ardupilot log to MATLAB converter
Stars: ✭ 26 (+73.33%)
Mutual labels:  log
apollo-log
A logging extension for the Apollo GraphQL Server
Stars: ✭ 64 (+326.67%)
Mutual labels:  log
laravel-epilog
🐈 IP, referer, user ID and more in Laravel logs
Stars: ✭ 25 (+66.67%)
Mutual labels:  log
aushape
A library and a tool for converting audit logs to XML and JSON
Stars: ✭ 37 (+146.67%)
Mutual labels:  log
axios-curlirize
axios plugin converting requests to cURL commands, saving and logging them.
Stars: ✭ 152 (+913.33%)
Mutual labels:  log
fast log
Rust async log High-performance asynchronous logging
Stars: ✭ 104 (+593.33%)
Mutual labels:  log
think-log-viewer
基于 Thinkphp5 开发的日志查看扩展包。
Stars: ✭ 21 (+40%)
Mutual labels:  log
slack-backup
Make copy of slack converstaions
Stars: ✭ 15 (+0%)
Mutual labels:  log
k8s-deployer
Deploy Kubernetes service and store retrieved information in the Consul K/V store
Stars: ✭ 23 (+53.33%)
Mutual labels:  kubectl
kubecolor
colorizes kubectl output
Stars: ✭ 975 (+6400%)
Mutual labels:  kubectl
addon-log-viewer
Log Viewer - Home Assistant Community Add-ons
Stars: ✭ 37 (+146.67%)
Mutual labels:  log
lwlog
A lightweight header only logging library for C
Stars: ✭ 46 (+206.67%)
Mutual labels:  log

kubelogs

It is a bash script that uses your current kubectl context to interactively select namespaces and multiple pods to download logs from. It basically runs kubectl logs in a loop for all containers, redirecting the logs to local files.

Prerequisites

kubelogs relies on whiptail to enable interactive selection.

Whiptail is included by default on Debian. If you are using another OS, make sure to have it installed:

Linux

yum install newt or apt-get install whiptail

MacOS

brew install newt

Installation

Just download the kubelogs file and it's done (download from releases to get stable ones).

Usage

Run kubelogs without any flags to:

  • Interactively select a namespace from current context
  • Interactively select multiple pods to dump logs from (space bar to check, enter to confirm)
  • Input a output dir for log files

Output filenames are created in the form pod_container.log

Use kubelogs --help for all available options and examples.

Skipping some interactive steps

Optionally, the --namespace and --output-dir flags can be used to skip namespace selection and/or typing of output dir (entirely skipping of whiptail is not supported yet).

Inherited flags

Some flags can be passed to kubectl logs that runs under the hood. Use kubelogs --help to see the available ones.

Environment

kubelogs supports the following option values from environment variables:

KUBELOGS_NAMESPACE
KUBELOGS_OUTPUT_DIR
KUBELOGS_TAIL
KUBELOGS_TIMESTAMPS

Examples

Default flags

Skipping interactive steps

Contribute

Pull requests are welcome! Feel free to open an issue to report bugs or requesting new features.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].