2019-07-26 14:15:48 |
Dan Watkins |
description |
`journalctl` is a common interface on to a system's logs, and it would be good if I could use journalctl to access cloud-init's logs in the same way I do all(/most) other units running on the system.
(This is particularly desirable when trying to line up cloud-init's logs with logs from another unit; if they were all in the journal then I could just specify -u to journalctl multiple times and get the lines in order all together.) |
`journalctl` is a common interface on to a system's logs, and it would be good if I could use journalctl to access cloud-init's logs in the same way I do all(/most) other units running on the system. As things stand, only some of cloud-init's logging ends up in the journal:
$ journalctl -u cloud-init.service -u cloud-final.service -u cloud-init-local.service -u cloud-config.service | wc -l
164
$ wc -l /var/log/cloud-init.log
1000 /var/log/cloud-init.log
(This is particularly desirable when trying to line up cloud-init's logs with logs from another unit; if they were all in the journal then I could just specify -u to journalctl multiple times and get the lines in order all together. Currently, they don't even have the same logging format.) |
|