Skip to content

Commit

Permalink
Create viewing_logs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
williln authored Jul 30, 2024
1 parent ab7cb9b commit d34bd9c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions kubernetes/viewing_logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Viewing logs for your pod

## Links

- [Using Kubectl Logs | SigNoz](https://signoz.io/blog/kubectl-logs/)

## Instructions

I went with the simplest incantation because I was looking at logs for the dev environment, and had just deployed, so I knew there wouldn't be many logs about the container I needed.

First, get the ID of the pod you need logs for:

```shell
kubectl -n [my-namespace] get pods
```

Then, get the logs:

```shell
kubectl -n [my-namespace] logs [my-pod-name]
```

This printed out a lot of logs to my console, which I then copied and pasted into a file so I could peruse them more easily.

0 comments on commit d34bd9c

Please sign in to comment.