---
title: "johanhaleby/kubetail: Bash script to tail Kubernetes logs from..."
description: "!https://github.com/johanhaleby/kubetail"
date: 2023-10-31
published: true
tags:
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/johanhaleby/kubetail" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://opengraph.githubassets.com/83400b59dbc3c6e9024d4b1770d275e3ad25ef94490027da78ebe014b67237e2/johanhaleby/kubetail" alt="GitHub - johanhaleby/kubetail: Bash script to tail Kubernetes logs from multiple pods at the same time — Bash script to tail Kubernetes logs from multiple pods at the same time - johanhaleby/kubetail" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">GitHub - johanhaleby/kubetail: Bash script to tail Kubernetes logs from multiple pods at the same time</div>
      <div class="embed-card-description">Bash script to tail Kubernetes logs from multiple pods at the same time - johanhaleby/kubetail</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


Kubetail is a pretty sick bash script that allows you to tail logs for multiple pods in one stream.  Very handy when you have more than one replica running.

``` bash
wget https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail
chmod u+x ./kubetail
```

Now with kubetail I can tail all the logs for every shot-wayl-one pod in the shot namespace.

``` bash
./kubetail shot-wayl-one -n shot
```

![output from running the kubetail command](https://screenshots.waylonwalker.com/kubetail.png)
