From: John Mulligan Date: Wed, 6 Sep 2023 20:56:40 +0000 (-0400) Subject: doc/cephadm: document new cephadm logging destination settings X-Git-Tag: v19.0.0~454^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abaeed1a207ce6f28dbe18bfd2fa4eb631d7cd0b;p=ceph.git doc/cephadm: document new cephadm logging destination settings Add docs for setting the binary's log destination at cephadm bootstrap or on a running cluster. Signed-off-by: John Mulligan --- diff --git a/doc/cephadm/operations.rst b/doc/cephadm/operations.rst index c59dce36a91c..d6323c04e0c3 100644 --- a/doc/cephadm/operations.rst +++ b/doc/cephadm/operations.rst @@ -173,6 +173,75 @@ files. You can configure the logging retention schedule by modifying ``/etc/logrotate.d/ceph.``. +Per-node cephadm logs +===================== + +The cephadm executable, either run directly by a user or by the cephadm +orchestration module, may also generate logs. It does so independently of +the other Ceph components running in containers. By default, this executable +logs to the file ``/var/log/ceph/cephadm.log``. + +This logging destination is configurable and you may choose to log to the +file, to the syslog/journal, or to both. + +Setting a cephadm log destination during bootstrap +-------------------------------------------------- + +The ``cephadm`` command may be executed with the option ``--log-dest=file`` +or with ``--log-dest=syslog`` or both. These options control where cephadm +will store persistent logs for each invocation. When these options are +specified for the ``cephadm bootstrap`` command the system will automatically +record these settings for future invocations of ``cephadm`` by the cephadm +orchestration module. + +For example: + +.. prompt:: bash # + + cephadm --log-dest=syslog bootstrap # ... other bootstrap arguments ... + +If you want to manually specify exactly what log destination to use +during bootstrap, independent from the ``--log-dest`` options, you may add +a configuration key ``mgr/cephadm/cephadm_log_destination`` to the +initial configuration file, under the ``[mgr]`` section. Valid values for +the key are: ``file``, ``syslog``, and ``file,syslog``. + +For example: + +.. prompt:: bash # + + cat >/tmp/bootstrap.conf <