Skip to content

How to view and query logs

The kubectl logs command allows you to see logs. It is useful during development, but it is limited to a single container at a time, and Pods that still currently exist.

kubectl logs [--follow] POD [-c CONTAINER] [-n NAMESPACE]

If you want to view older logs or perform query over them, you can use Grafana Loki. Head over to https://logs.hsrn.nyu.edu/ and click "sign in with OAuth".

See the Loki documentation for help formulating queries.