How to get events with lastTimestamp from the last ten minutes? I don’t want to see older events in my current use-case.
For kubectl logs
there is “–since”. I could not find that for events. Is there a work-around?
How to get events with lastTimestamp from the last ten minutes? I don’t want to see older events in my current use-case.
For kubectl logs
there is “–since”. I could not find that for events. Is there a work-around?
There is no --since
for the events because it is get events
, while logs
is not get
subcomand
https://github.com/kubernetes/kubectl/issues/977#issuecomment-724265837
It looks like an external filter is the only option, e.g. jq
scripting should help