logging-config should allow the manipulation of a single machine agent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned |
Bug Description
Some environments, due to performance reasons or internal policies, the logging level is set to WARNING, so during troubleshooting it may be necessary to increase the level for a single machine/unit agent. This can be done for unit agents using the following configuration:
juju model-config logging-
But there is no method to set level for a machine agent.
Example of a machine log
$ juju debug-log --replay -i machine-0 | tail -n 4
machine-0: 09:01:56 DEBUG juju.worker.
machine-0: 09:01:56 DEBUG juju.worker.
machine-0: 09:01:56 DEBUG juju.worker.
machine-0: 09:01:56 DEBUG juju.worker.logger reconfiguring logging from "<root>=DEBUG" to "<root>
As you can see the machine-0 logs are not prefixed.
summary: |
- logging-config should allow to manipulation of a single machine agent + logging-config should allow the manipulation of a single machine agent |
There is a way to set this for a single agent as of 2.2.0, but requires editing the agent.conf file for any agent, and setting the LOGGING_OVERRIDE key in the values map, and restarting the agent.