From: cheese-cakee Date: Tue, 24 Mar 2026 22:44:16 +0000 (+0530) Subject: rgw/logging: use trans_id for standard access log record X-Git-Tag: v21.0.1~391^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F67984%2Fhead;p=ceph.git rgw/logging: use trans_id for standard access log record In standard mode, the access log record was using s->req_id for the request ID field. The correct field is s->trans_id, which matches the x-amz-request-id returned in the S3 response. This is consistent with how all other RGW response code uses trans_id. Fixes: http://tracker.ceph.com/issues/75416 Signed-off-by: cheese-cakee --- diff --git a/src/rgw/rgw_bucket_logging.cc b/src/rgw/rgw_bucket_logging.cc index bfb76a46c77..5d29e17ce21 100644 --- a/src/rgw/rgw_bucket_logging.cc +++ b/src/rgw/rgw_bucket_logging.cc @@ -585,7 +585,7 @@ int log_record(rgw::sal::Driver* driver, t, s->info.env->get("REMOTE_ADDR", "-"), dash_if_empty(user_or_account), - dash_if_empty(s->req_id), + dash_if_empty(s->trans_id), op_name, dash_if_empty_or_null(obj, obj->get_name()), s->info.method,