ads
Thursday, July 3, 2025
Show HN: KLogger – Quick CLI to grab all deployment logs from a K8s namespace https://ift.tt/j5aDupI
Show HN: KLogger – Quick CLI to grab all deployment logs from a K8s namespace Had a vendor ask for logs from our Kubernetes cluster today. We don't run any log aggregation (no fluentd/fluentbit) except DataDog, so I needed to grab logs from 30+ deployments across three namespaces. Instead of running kubectl logs for each deployment manually, I built this Python CLI that collects all deployment logs from a namespace in one shot. It organizes them by date and namespace, runs collections in parallel, and handles the usual k8s edge cases (multiple pods per deployment, failed pods, etc). Usage is simple: klogger collect -n production Nothing groundbreaking, but it saved me hours of manual work and might help others in similar situations. It's basically a kubectl wrapper that does one thing well - bulk log collection when you need it. GitHub: https://ift.tt/MhOragS https://ift.tt/9vY1wlI July 3, 2025 at 10:51PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment