Forrest logo
back to context overview

kubectl-logs

List of commands for kubectl-logs:

  • kubectl-logs:tldr:1edd6 kubectl-logs: Show pod logs newer than a relative time like `10s`, `5m`, or `1h`.
    $ kubectl logs --since=${relative_time} ${pod_name}
    try on your machine
    explain this command
  • kubectl-logs:tldr:2a82b kubectl-logs: Show logs for all containers in a pod.
    $ kubectl logs --all-containers=${true} ${pod_name}
    try on your machine
    explain this command
  • kubectl-logs:tldr:3dc81 kubectl-logs: Show logs for a single-container pod.
    $ kubectl logs ${pod_name}
    try on your machine
    explain this command
  • kubectl-logs:tldr:5581e kubectl-logs: Stream pod logs.
    $ kubectl logs --follow ${pod_name}
    try on your machine
    explain this command
  • kubectl-logs:tldr:88770 kubectl-logs: Stream logs for a specified container in a pod.
    $ kubectl logs --follow --container ${container_name} ${pod_name}
    try on your machine
    explain this command
  • kubectl-logs:tldr:93c59 kubectl-logs: Show logs for a specified container in a pod.
    $ kubectl logs --container ${container_name} ${pod_name}
    try on your machine
    explain this command
  • kubectl-logs:tldr:d5506 kubectl-logs: Show the 10 most recent logs in a pod.
    $ kubectl logs --tail=${10} ${pod_name}
    try on your machine
    explain this command
back to context overview