Skip to main content

Attivazione LOG

NOTA:
Il file /etc/pve/ceph.conf è condiviso dal cluster Proxmox.

ESEGUIRE SOLO SU: CephS3-1

nano /etc/pve/ceph.conf

Aggiungere da ogni client le righe:
    rgw_enable_ops_log = true
    rgw_ops_log_file_path = /var/log/ceph/rgw-ops.log
    rgw_log_object_name = true
    rgw_enable_usage_log = true:

Risultato finale:

[client.CephS3-1]
    keyring = /var/lib/ceph/radosgw/ceph-CephS3-1/keyring
    rgw_enable_ops_log = true
    rgw_ops_log_file_path = /var/log/ceph/rgw-ops.log
    rgw_log_object_name = true
    rgw_enable_usage_log = true

[client.CephS3-2]
    keyring = /var/lib/ceph/radosgw/ceph-CephS3-2/keyring
    rgw_enable_ops_log = true
    rgw_ops_log_file_path = /var/log/ceph/rgw-ops.log
    rgw_log_object_name = true
    rgw_enable_usage_log = true

 

[client.CephS3-3]
    keyring = /var/lib/ceph/radosgw/ceph-CephS3-3/keyring
    rgw_enable_ops_log = true
    rgw_ops_log_file_path = /var/log/ceph/rgw-ops.log
    rgw_log_object_name = true
    rgw_enable_usage_log = true

Esempio di tipico log:
{"bucket":"ftps","object":"ftps/FotoViadotti/D12/p9/100MEDIA/DJI_0957.JPG","time":"2026-09-30T16:02:59.014822Z","time_local":"2026-09-30T18:02:59.014822+0200","remote_addr":"192.168.199.5","object_owner":"s3admin","user":"s3admin","operation":"get_obj","uri":"HEAD /ftps/ftps/FotoViadotti/D12/p9/100MEDIA/DJI_0957.JPG HTTP/1.1","http_status":"200","error_code":"","bytes_sent":0,"bytes_received":0,"object_size":8017534,"total_time":1,"user_agent":"CacheMount/1.17.5691 (QNAP; QTS 5.2.10)","referrer":"","trans_id":"tx00000e8c04270a99686e5-006abd32b3-56439-eagle-zone","authentication_type":"Local","access_key_id":"HZOZ4L7G4LRA2U3Z5826","temp_url":false}