Rod Stewart:
–since=0s: Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. Only one of
since-time / since may be used.
–since-time=‘’: Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time /
since may be used.
Mani:
Thank you @Rod Stewart for the info.
unnivkn:
docker events --until 0m | grep api-server | grep die
kubectl logs --since=5m nginx
##Show all logs from pod nginx written in the last hour
kubectl logs --since=1h nginx