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)
- Host: GitHub
- URL: https://github.com/trstringer/kuberetes-log-dump
- Owner: trstringer
- Created: 2021-08-12T15:45:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T19:29:14.000Z (over 4 years ago)
- Last Synced: 2024-10-11T15:08:44.169Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.**