This creates a /var/log/ps_mem.txt file on each juju host machine (not on lxds). The logs are then collected via the bootstrap unit (machine 0) and the base-machine units in the inner environment. Collection looks like:
2017-01-24 19:56:53,238 INFO Collecting ps_mem output for all hosts including bootstrap
2017-01-24 19:56:55,364 INFO Collecting ps_mem output on unit 1
2017-01-24 19:57:00,300 INFO Collecting ps_mem output on unit 0
2017-01-24 19:57:07,115 INFO Collecting ps_mem output on unit 3
2017-01-24 19:57:13,722 INFO Collecting ps_mem output on unit 2
2017-01-24 19:57:25,716 INFO Collecting ps_mem output on unit 5
2017-01-24 19:57:31,989 INFO Collecting ps_mem output on unit 4
This creates a /var/log/ps_mem.txt file on each juju host machine (not on lxds). The logs are then collected via the bootstrap unit (machine 0) and the base-machine units in the inner environment. Collection looks like:
ps_mem.txt looks like:
This example is stored under:
landscape-0-inner-logs/base-machine-0/var/log/ps_mem.txt
This was tested manually on a local deployment by running
collect-logs logs.tar.gz
.