An open API service indexing awesome lists of open source software.

https://github.com/trstringer/kuberetes-log-dump

Dump all Kubernetes pod logs (current and previous)
https://github.com/trstringer/kuberetes-log-dump

Last synced: 5 months ago
JSON representation

Dump all Kubernetes pod logs (current and previous)

Awesome Lists containing this project

README

          

# Dump Kubernetes pod logs

Dump all Kubernetes pod logs to the filesystem. This creates a dir in `/tmp` and outputs all current and previous pod logs to a new dir. Each new file has the format of `NAMESPACE.POD.CONTAINER..log`.

This script also creates a tarball for ease of sharing.

## Usage

```
$ ./dump_pod_logs.sh
```

**Warning: Pod logs can contain sensitive application data. Prior to sharing, ensure that you are taking the necessary measures to protect your data.**