Hello, Is it possible to find 5 days pod logs. I had tried kubectl logs -f --sin . . .

ramya rani:
Hello, Is it possible to find 5 days pod logs. I had tried kubectl logs -f --since=5d nginx-7d8b49557c-c2lx9
But not working

Mariusz Gomse:
I think that since only works with s (seconds), m (minutes) and h (hours)

so you can use --since=120h

or you can use --since-time with date in RFC3339

see https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs for more info