Custom KEDA Docker Image with Log Redirection (stdout/stderr to file) – Best Practice? #6663
Unanswered
rockingcubes
asked this question in
Q&A / Need Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi KEDA team! 👋
I’m building a custom Docker image for the KEDA operator (v2.15.1) based on your official image. I’d like to redirect logs to files (e.g., /logs/stdout.log, /logs/stderr.log) for Splunk ingestion using a sidecar forwarder.
We tried wrapping the KEDA binary with an entrypoint.sh like this:
And our Dockerfile:
FROM ghcr.io/kedacore/keda:2.15.1 AS base
✅ The operator works fine, but:
/logs/stdout.log is always empty
No ps or ls binaries exist in /keda’s distroless base
📌 My question is:
Is there a better or supported way to redirect logs to a volume/file from KEDA?
Do you recommend sticking with ENTRYPOINT ["/keda", ...] and capturing container logs via stdout instead?
Appreciate your help and amazing work on KEDA 🙏
Beta Was this translation helpful? Give feedback.
All reactions