Dex server not using structured/json logging consistently with --logformat json
#13191
Closed
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
When starting the
argocd-dex
executable with--logformat json
, then some log outputs are structured/json, while others are not.In our particular setup, we use the Argo CD Helm chart in version 5.28.1 and supply the
--logformat json
via thedex.extraArgs
Helm value and aps
inside of the pod confirms that theargocd-dex
executable was started accordingly as/shared/argocd-dex rundex --logformat json
.We are currently going over all our logs that are erroneously categorized as "errors" by fluentbit/Stackdriver in GCP/GKE, just because they emit log lines in non-json format on stderr. For this, all log output should use structured/json logging.
The log output produced by this is seen below in the "Logs" section. Notably, it contains both structured log output as well as text output. The latter is likely produced by the spawned/started
dex
executable.It would be nice if using
--logformat json
also applies to the starteddex
program (somehow).To Reproduce
argocd-dex
component usingrundex --logformat json
Expected behavior
All log messages output by
argocd-dex
(and sub-processes started by it, notably thedex
executable) should use structured/json logging consistently such that those log lines can be identified and classified correctly by other external tools like a GCP/GKE-provided fluentbit Log Agent.Version
Logs
The text was updated successfully, but these errors were encountered: