Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Enabling the Log Analyzer to fetch previous logs of a pod when it restarts #1370

Open
2 tasks done
abindg opened this issue Feb 6, 2025 · 0 comments
Open
2 tasks done

Comments

@abindg
Copy link

abindg commented Feb 6, 2025

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've discussed this feature request in the K8sGPT Slack and got positive feedback

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Proposed
Development

No branches or pull requests

1 participant