From: Casey Bodley Date: Thu, 31 Mar 2022 17:54:16 +0000 (-0400) Subject: rgw: enable rgw_ops_log_file_path by default X-Git-Tag: v18.0.0~1005^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7fe4bf15563fe4f4f39f4395c91d2c877d53c266;p=ceph.git rgw: enable rgw_ops_log_file_path by default Signed-off-by: Casey Bodley --- diff --git a/src/common/options/rgw.yaml.in b/src/common/options/rgw.yaml.in index a1a3cc9c3f54..a378c71ac877 100644 --- a/src/common/options/rgw.yaml.in +++ b/src/common/options/rgw.yaml.in @@ -1480,8 +1480,10 @@ options: type: str level: advanced desc: File-system path for ops log. - long_desc: Path to file that RGW will log ops logs to. + long_desc: Path to file that RGW will log ops logs to. A cephadm deployment will automatically + rotate these logs under /var/log/ceph/. Other deployments should arrange for similar log rotation. fmt_desc: The file-system path for writing operations logs. + daemon_default: /var/log/ceph/ops-log-$cluster-$name.log services: - rgw see_also: diff --git a/src/test/cli/ceph-conf/show-config.t b/src/test/cli/ceph-conf/show-config.t index cfd723997c87..45405e4b7a07 100644 --- a/src/test/cli/ceph-conf/show-config.t +++ b/src/test/cli/ceph-conf/show-config.t @@ -2,5 +2,6 @@ admin_socket = /var/run/ceph/ceph-osd.0.asok log_file = /var/log/ceph/ceph-osd.0.log mon_debug_dump_location = /var/log/ceph/ceph-osd.0.tdump + rgw_ops_log_file_path = /var/log/ceph/ops-log-ceph-osd.0.log $ CEPH_ARGS="--fsid 96a3abe6-7552-4635-a79b-f3c096ff8b95" ceph-conf -n osd.0 --show-config -c /dev/null | grep fsid fsid = 96a3abe6-7552-4635-a79b-f3c096ff8b95