** Description changed:

  `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.
+ 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.)
+ order all together.  Currently, they don't even have the same logging
+ format.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1838032

Title:
  cloud-init should emit all of its logs to the systemd journal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1838032/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to