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

2019-04-17 Thread Francois Lafont
Hi Matt, On 4/17/19 1:08 AM, Matt Benjamin wrote: Why is using an explicit unix socket problematic for you? For what it does, that decision has always seemed sensible. In fact, I don't understand why the "ops" logs have a different way from the logs of the process radosgw itself.

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

2019-04-16 Thread Matt Benjamin
Hi Francois, Why is using an explicit unix socket problematic for you? For what it does, that decision has always seemed sensible. Matt On Tue, Apr 16, 2019 at 7:04 PM Francois Lafont wrote: > > Hi @all, > > On 4/9/19 12:43 PM, Francois Lafont wrote: > > > I have tried this config: > > > >

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

2019-04-16 Thread Francois Lafont
Hi @all, On 4/9/19 12:43 PM, Francois Lafont wrote: I have tried this config: - rgw enable ops log  = true rgw ops log socket path = /tmp/opslog rgw log http headers    = http_x_forwarded_for - and I have logs in the socket /tmp/opslog like this: -

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

2019-04-09 Thread Francois Lafont
On 4/9/19 12:43 PM, Francois Lafont wrote: 2. In my Docker container context, is it possible to put the logs above in the file "/var/log/syslog" of my host, in other words is it possible to make sure to log this in stdout of the daemon "radosgw"? In brief, is it possible log "operations" in

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

2019-04-09 Thread Francois Lafont
Hi, On 4/9/19 5:02 AM, Pavan Rallabhandi wrote: 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 Ok, thx for your help Pavan. I have progressed but I have already some problems.

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

2019-04-08 Thread Pavan Rallabhandi
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" wrote: Hi @all, I'm using Ceph rados

[ceph-users] Try to log the IP in the header X-Forwarded-For with radosgw behind haproxy

2019-04-08 Thread Francois Lafont
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