How to view previous wildfly server.log in openshift environment How to view previous wildfly server.log in openshift environment kubernetes kubernetes

How to view previous wildfly server.log in openshift environment


oc logs --previous depends on container logs which is managed by container runtime(such as docker). If the pod(container) was restarted due to unnormal states, container logs are remained. At that case, oc logs --previous shows you old logs. As I see, the previous logs are not remained at the moment.

How about looking for the previous logs using Pod name, Project and Timestamp ?