CmdID

CmdID / kubectl

kubectl logs

Print the logs for a container in a pod kubectl reference

17 options Its page in the kubectl reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

17 in the kubectl reference
--all-containersGet all containers' logs in the pod(s).
--all-podsGet logs from all pod(s).
--container, -cPrint the logs of this container
--follow, -fSpecify if the logs should be streamed.
--help, -hhelp for logs
--ignore-errorsIf watching / following pod logs, allow for any errors that occur to be non-fatal
--insecure-skip-tls-verify-backendSkip verifying the identity of the kubelet that logs are requested from.
--limit-bytesMaximum bytes of logs to return.
--max-log-requestsSpecify maximum number of concurrent logs to follow when using by a selector.
--pod-running-timeoutThe length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running
--prefixPrefix each log line with the log source (pod name and container name)
--previous, -pIf true, print the logs for the previous instance of the container in a pod if it exists.
--selector, -lSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)).
--since-timeOnly return logs after a specific date (RFC3339).
--sinceOnly return logs newer than a relative duration like 5s, 2m, or 3h.
--tailLines of recent log file to display.
--timestampsInclude timestamps on each line in the log output