Where Do Missing Pod Logs Go in OpenShift Using Loki?

0
8
Asked By TechScribe42 On

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

Answered By LogMaster88 On

Sounds like Loki is messing with you a bit. Make sure your logging setup is correctly configured.

Answered By CloudNinja93 On

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.

Answered By NewbieDev15 On

Are you saving the logs somewhere? Since I've never used Loki, I'm not quite sure how it operates.

TechScribe42 -

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

Answered By K8sBeginner007 On

First off, does the pod actually have logs? I would check by running `oc logs ` to see if anything appears.

TechScribe42 -

I’m dealing with stateless pods, so their names change often, which makes it tricky to check logs easily.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.