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

Allow for container logs to continue to stay on screen after pod is terminated #8040

Open
fleetwoodstack opened this issue Apr 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fleetwoodstack
Copy link

fleetwoodstack commented Apr 25, 2024

What would you like to be added:
When you're viewing logs currently for a container, when the pod terminates the logs suddenly disappear and the error displays

Failed to load logs: Pod xxxx missing
Reason: undefined (undefined)

It would be VERY useful when attempting to debug these pods to allow us to continue viewing these existing logs as they are on screen after the pod has terminated.

Why is this needed:

Because if you want to debug a terminating pod and you know it contains logs within that will help you understand the cause, you can view them. Yes, these logs should ideally be sent to logging tool (e.g. elastic) however it would be far more elegant for Lens to not fail viewing these existing logs when a pod is terminated.

Environment you are Lens application on:

  • Kubernetes distribution: [EKS, AKS, GKE, Rancher, ...]: AKS and EKS
  • Desktop OS: Windows 11
@fleetwoodstack fleetwoodstack added the enhancement New feature or request label Apr 25, 2024
@fleetwoodstack fleetwoodstack changed the title Allow for logs to continue to stay on screen after pod is terminated Allow for container logs to continue to stay on screen after pod is terminated Apr 25, 2024
@MajaScherman
Copy link

I want to upvote this issue. It would be very useful for me as well if the logs were retained for a little while longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants