Quick update:
adding the following to your config:
rgw log http headers = "http_authorization"
rgw ops log socket path = /tmp/rgw
rgw enable ops log = true
rgw enable usage log = true
and you can now
nc -U /tmp/rgw |./jq --stream 'fromstream(1|truncate_stream(inputs))'
{
"time": "2018-03-12 21:42:19.479037Z",
"time_local": "2018-03-12 21:42:19.479037",
"remote_addr": "",
"user": "test",
"operation": "PUT",
"uri": "/testbucket/",
"http_status": "200",
"error_code": "",
"bytes_sent": 19,
"bytes_received": 0,
"object_size": 0,
"total_time": 600967,
"user_agent": "Boto/2.46.1 Python/2.7.12 Linux/4.4.0-42-generic",
"referrer": "",
"http_x_headers": [
{
"HTTP_AUTHORIZATION": "AWS <aws key id>: <signature>"
}
]
}
pretty good start on getting an audit log going!
CONFIDENTIALITY NOTICE
|
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com