ibm-apiconnect/v10-postmortem

Be able to run postmortem with --since=xh or xm flag

Closed this issue · 5 comments

Would be nice if postmortem had option to collect logs just for the last hour vs full logs etc.
similar to kubernetes logs --since=xx option

@micoletta Does log_limit help with your requirement ?

no, there is no way to tell what line the issue would have occurred and how do you do line limit for so many pods, each with different lengths.
I customer hist issue at 2pm and you are gather logs at 3pm you could use --since=2hr as example that that will gather logs from all the pods for the past 2 hours.

dfibm commented

Any news on this idea? I was about to post the same idea, also allow specific timestamp input for those scenarios when the customer is aware when the problem initiated.

Thanks.

@micoletta @dfibm - Not sure I see the benefit of this issue - from perspective of those analysing the logs - I think it is best to see as much as possible. If goal here is how long it takes to run - we have other plans to speed up the running of post mortem.

Thanks for update closing