Monitor the logs of pod custom-app and Extract log lines corresponding to error file not found Write them to /var/CKA2022/podlog.
kubectl get pods custom-app
kubectl logs custom-app | grep `file not found` > /var/CKA2022/podlog
cat /var/CKA2022/podlog
출처