Refer "rgw log http headers" under 
http://docs.ceph.com/docs/nautilus/radosgw/config-ref/

Or even better in the code https://github.com/ceph/ceph/pull/7639

Thanks,
-Pavan.

On 4/8/19, 8:32 PM, "ceph-users on behalf of Francois Lafont" 
<ceph-users-boun...@lists.ceph.com on behalf of francois.lafont.1...@gmail.com> 
wrote:

    Hi @all,
    
    I'm using Ceph rados gateway installed via ceph-ansible with the Nautilus
    version. The radosgw are behind a haproxy which add these headers (checked
    via tcpdump):
    
         X-Forwarded-Proto: http
         X-Forwarded-For: 10.111.222.55
    
    where 10.111.222.55 is the IP address of the client. The radosgw use the
    civetweb http frontend. Currently, this is the IP address of the haproxy
    itself which is mentioned in logs. I would like to mention the IP address
    from the X-Forwarded-For HTTP header. How to do that?
    
    I have tried this option in ceph.conf:
    
         rgw_remote_addr_param = X-Forwarded-For
    
    It doesn't work but maybe I have read the doc wrongly.
    
    Thx in advance for your help.
    
    PS: I have tried too the http frontend "beast" but, in this case, no HTTP
    request seems to be logged.
    
    -- 
    François
    _______________________________________________
    ceph-users mailing list
    ceph-users@lists.ceph.com
    http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
    

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to