argo-cd
argo-cd copied to clipboard
Support for previous logs
Summary
Pod logs should have a toggle to view previous log like kubectl logs -p
This was an added comment on a stale issue #781
Motivation
If you have a pod in a crash loop, it's easier for an engineer to look at the previous logs to diagnose than trying to catch the message on a continuously scrolling log that might reset too quick. kubedashboard has this feature.
Proposal
I think on the logs screen, we can have a simple checkbox for Previous Container that will toggle which logs are requested.
I am willing to do the server side work to get this support added, but I'm no frontend developer so that might be out of my wheelhouse. Let me know if the team is interested in this enhancement.
@denniswebb are you still willing to do server side changes for this? I'm happy to do the UI change.
The lack of this feature is fustrating. When it happens I have to:
- Login to corp network.
- Login to Internal Kubernetes System Management tool.
- Download KUBECONFIG.
- Get pod name.
- Get previous logs.
As stated in https://github.com/argoproj/argo-cd/issues/7193#issuecomment-939043182, it seems that https://github.com/argoproj/argo-cd/pull/7393 implements this feature, therefore the issue can be closed?
The issue https://github.com/argoproj/argo-cd/pull/7393 is ok, we are able to view previous log. But it is not possible to download the full log from the previous pods, even with the toggle button for previous log checked when I hit the download button Argocd delivery a log file from the running pod.
In time, there is a feature that I can copy the log but it copies only the current page, not able to download the whole log from the previous pod.
Is there any chance of gui update?
I am running version v2.5.5+fc3eaec
.