kubectl logsIT technician command center
Containers · Docker and Kubernetes

kubectl logs

Follow Kubernetes workload logs.

Copy-ready commandkubectl logs
kubectl logs -n production deployment/web --tail=100 -f

Requirements and permissions

Requirements
Docker Engine, Docker Compose, or kubectl
Permissions
Container or cluster permissions vary
Last reviewed
2026-07-31

Examples

Basic example

Follow Kubernetes workload logs.

kubectl logs -n production deployment/web --tail=100 -f

Common errors

Command not found

Confirm Docker Engine, Docker Compose, or kubectl is installed and available in your current shell.