[Feature]: Enabling the Log Analyzer to fetch previous logs of a pod when it restarts #1370
Open
2 tasks done
Labels
backend
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Checklist
Is this feature request related to a problem?
Yes
Problem Description
In Scenarios when a pod restarts (like if you try going to the UI of the sock-shop micro services demo[public archived] and try to go to order , the front end pod restarts), k8sgpt log analyzer is not prompted to look into the previous logs of the pod and so no results are available - even though this error may recurr anytime the said action flow is repeated by a user . It will be nice if Log analyzer is prompted to look into the previous logs of a restarted pod (kubectl logs -n --previous)
Solution Description
When a pod restarts , log analyzer should be prompted to check the previous logs of the restarted pod and if analyzed positive generate a result
Benefits
Enables to track errors that lead to restarting pods , which otherwise are missed
Potential Drawbacks
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: