Sobes.tech
Junior

How to display only the last 100 lines of logs?

sobes.tech AI

Answer from AI

kubectl logs <pod-name> -n <namespace> --tail=100
tail -n 100 <log-file-path>