I'm facing a challenge with missing logs when a pod gets deleted in my OpenShift environment. We're using Loki for logging, but I can't seem to find the logs in the cluster after the pod is removed. Does anyone know what's happening here?
4 Answers
Sounds like Loki is messing with you a bit. Make sure your logging setup is correctly configured.
If you're using Loki, the logs should definitely be stored there. If you can't find them in Loki, that means they were never sent there, and unfortunately, they might be gone for good.
Are you saving the logs somewhere? Since I've never used Loki, I'm not quite sure how it operates.
First off, does the pod actually have logs? I would check by running `oc logs ` to see if anything appears.
I’m dealing with stateless pods, so their names change often, which makes it tricky to check logs easily.

Yes, we’re storing logs in the cluster itself.