Re: Try to log the IP in the header X-Forwarded-For with radosgw behind haproxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-bounces@xxxxxxxxxxxxxx on behalf of francois.lafont.1978@xxxxxxxxx> 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@xxxxxxxxxxxxxx
    http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
    

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




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux