I think the question is; why don't we log to syslog by default.  I think
historically cloud-init is run in many OSes which may or maynot have
syslog capabilities so it defaults to writing it's own log directly.

At least for local testing, it's easy enough to update
/etc/cloud/cloud.d/05_logging.cfg

root@e1:~# diff -u /etc/cloud/cloud.cfg.d/05_logging.cfg.orig 
/etc/cloud/cloud.cfg.d/05_logging.cfg
--- /etc/cloud/cloud.cfg.d/05_logging.cfg.orig  2019-07-26 14:14:23.950183322 
+0000
+++ /etc/cloud/cloud.cfg.d/05_logging.cfg       2019-07-26 14:14:30.110221163 
+0000
@@ -57,11 +57,11 @@
 # that defines the configuration.
 #
 # If you want logs to go to syslog, uncomment the following line.
-# - [ *log_base, *log_syslog ]
+ - [ *log_base, *log_syslog ]
 #
 # The default behavior is to just log to a file.
 # This mechanism that does not depend on a system service to operate.
- - [ *log_base, *log_file ]
+# - [ *log_base, *log_file ]
 # A file path can also be used.
 # - /etc/log.conf

-- 
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