Bug #20935
closedrgw opslog cannot record referrer when using curl as client
0%
Description
curl --referer jiaying localhost:8000/111/66666666666666666666666666
root@ceph-node1# (git::master) ./bin/radosgw-admin -c ceph.conf log show --object=2017-08-07-17-0bd736e3-9f49-4dcd-b0b3-01e43ab2d99f.4106.1-111
{
"bucket_id": "0bd736e3-9f49-4dcd-b0b3-01e43ab2d99f.4106.1",
"bucket_owner": "testid",
"bucket": "111",
"log_entries": [
{
....
},
{
"bucket": "111",
"time": "2017-08-07 09:23:42.817341Z",
"time_local": "2017-08-07 17:23:42.817341",
"remote_addr": "127.0.0.1",
"user": "anonymous",
"operation": "GET",
"uri": "/111/66666666666666666666666666",
"http_status": "403",
"error_code": "AccessDenied",
"bytes_sent": 213,
"bytes_received": 0,
"object_size": 0,
"total_time": 2189668,
"user_agent": "curl/7.29.0",
"referrer": ""
},
{
....
}
],
"log_sum": {
"bytes_sent": 426,
"bytes_received": 0,
"total_time": 3994118,
"total_entries": 3
}
}