kubernetesopenshiftwildfly-10openshift-3openshift-online

How to view previous wildfly server.log in openshift environment


Trying to identify the cause of restart of the wildfly application in a openshift POD:

I remember something about using Kibana to see old logs.

What are the options to quickly see the old logs for wildfly running under openshift?


Solution

  • 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 ?