Re: RGW access logs with bucket name

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

 



Hi Boris,

I found that you need to use debug_rgw=10 to see the bucket name :-/

e.g.
2023-10-28T19:55:42.288+0000 7f34dde06700 10 req 3268931155513085118
0.000000000s s->object=... s->bucket=xyz-bucket-123

Did you find a more convenient way in the meantime? I think we should
log bucket name at level 1.

Cheers, Dan

--
Dan van der Ster
CTO

Clyso GmbH
p: +49 89 215252722 | a: Vancouver, Canada
w: https://clyso.com | e: dan.vanderster@xxxxxxxxx

Try our Ceph Analyzer: https://analyzer.clyso.com

On Thu, Mar 30, 2023 at 4:15 AM Boris Behrens <bb@xxxxxxxxx> wrote:
>
> Sadly not.
> I only see the the path/query of a request, but not the hostname.
> So when a bucket is accessed via hostname (https://bucket.TLD/object?query)
> I only see the object and the query (GET /object?query).
> When a bucket is accessed bia path (https://TLD/bucket/object?query) I can
> see also the bucket in the log (GET bucket/object?query)
>
> Am Do., 30. März 2023 um 12:58 Uhr schrieb Szabo, Istvan (Agoda) <
> Istvan.Szabo@xxxxxxxxx>:
>
> > It has the full url begins with the bucket name in the beast logs http
> > requests, hasn’t it?
> >
> > Istvan Szabo
> > Staff Infrastructure Engineer
> > ---------------------------------------------------
> > Agoda Services Co., Ltd.
> > e: istvan.szabo@xxxxxxxxx
> > ---------------------------------------------------
> >
> > On 2023. Mar 30., at 17:44, Boris Behrens <bb@xxxxxxxxx> wrote:
> >
> > Email received from the internet. If in doubt, don't click any link nor
> > open any attachment !
> > ________________________________
> >
> > Bringing up that topic again:
> > is it possible to log the bucket name in the rgw client logs?
> >
> > currently I am only to know the bucket name when someone access the bucket
> > via https://TLD/bucket/object instead of https://bucket.TLD/object.
> >
> > Am Di., 3. Jan. 2023 um 10:25 Uhr schrieb Boris Behrens <bb@xxxxxxxxx>:
> >
> > Hi,
> >
> > I am looking forward to move our logs from
> >
> > /var/log/ceph/ceph-client...log to our logaggregator.
> >
> >
> > Is there a way to have the bucket name in the log file?
> >
> >
> > Or can I write the rgw_enable_ops_log into a file? Maybe I could work with
> >
> > this.
> >
> >
> > Cheers and happy new year
> >
> > Boris
> >
> >
> >
> >
> > --
> > Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im
> > groüen Saal.
> > _______________________________________________
> > ceph-users mailing list -- ceph-users@xxxxxxx
> > To unsubscribe send an email to ceph-users-leave@xxxxxxx
> >
> >
> > ------------------------------
> > This message is confidential and is for the sole use of the intended
> > recipient(s). It may also be privileged or otherwise protected by copyright
> > or other legal rules. If you have received it by mistake please let us know
> > by reply email and delete it from your system. It is prohibited to copy
> > this message or disclose its content to anyone. Any confidentiality or
> > privilege is not waived or lost by any mistaken delivery or unauthorized
> > disclosure of the message. All messages sent to and from Agoda may be
> > monitored to ensure compliance with company policies, to protect the
> > company's interests and to remove potential malware. Electronic messages
> > may be intercepted, amended, lost or deleted, or contain viruses.
> >
>
>
> --
> Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im
> groüen Saal.
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[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