Skip to content

Log format unification for kyma module controllers #661

@kwiatekus

Description

@kwiatekus

Description
Adjust logging in application-connector, so that deployments labelled with kyma-project.io/module=application-connector produce logs that are compliant with recommendations documented here.

Reason
Our goal is unify log format in order to reduce the time needed for users and support engineers to create error and warning log dumps.
kyma-project/cli#2651

Expected logs

  • make all log entries JSON parsable (parsing logs with jq produces no error)
  • include level : debug, info, warn, error
  • include timestamp (not ts) in RFC3339 format
  • include message (not msg)

Additionally

  • make sure the deployment application-connector-controller-manager contains the kyma-project.io/module=application-connector label

Actual logs

{"L":"DEBUG","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/apply.go:24","M":"applying","reqID":124,"gvk":"apps/v1, Kind=Deployment","name":"compass-runtime-agent","ns":"kyma-system"}
{"L":"DEBUG","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/apply.go:24","M":"applying","reqID":124,"gvk":"networking.istio.io/v1beta1, Kind=Gateway","name":"kyma-gateway-application-connector","ns":"kyma-system"}
{"L":"DEBUG","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/apply.go:24","M":"applying","reqID":124,"gvk":"networking.istio.io/v1beta1, Kind=VirtualService","name":"central-application-connectivity-validator","ns":"kyma-system"}
{"L":"INFO","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/fsm.go:70","M":"switching state from github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnApply to github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnVerify","reqID":124,"result":null,"err":null,"mFnIsNill":false}
{"L":"INFO","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/fsm.go:70","M":"switching state from github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnVerify to github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnVerify.stopWithRequeueAfter.sFnUpdateStatus.func3","reqID":124,"result":null,"err":null,"mFnIsNill":false}
{"L":"INFO","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/fsm.go:70","M":"switching state from github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnVerify.stopWithRequeueAfter.sFnUpdateStatus.func3 to github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnEmmitEventfunc.func1","reqID":124,"result":null,"err":null,"mFnIsNill":false}
{"L":"INFO","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/fsm.go:70","M":"switching state from github.com/kyma-project/application-connector-manager/pkg/reconciler.sFnEmmitEventfunc.func1 to ","reqID":124,"result":{"Requeue":false,"RequeueAfter":120000000000},"err":null,"mFnIsNill":true}
{"L":"INFO","timestamp":"2025-10-24T14:41:15Z","C":"reconciler/fsm.go:80","M":"reconciliation done","reqID":124,"error":null,"result":{"Requeue":false,"RequeueAfter":120000000000}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions