Juju application operator logging output

The operator pods which run the charms for each deployed application log to the standard Kubernetes logging service. This allows kubectl -n <namespace> log <podname> to be used as with any other pod.

We’ve now enhanced the operator to also log back to the Juju controller. This allows juju debug-log to be used. As with uniter and charm logs, application operator logs are stored in the model log.

Operator logs from the controller:

juju debug-log -m <modelname>

Operator logs directly from Kubernetes:

kubectl -n <modelname> log -f pod/juju-operator-<name>

1 Like