Re: Migrated to cephadm, rgw logs to file even when rgw_ops_log_rados is true

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

 



Hi!
Currently I have limitted the optput of rgw log to syslog from rsyslog (as
suggested by
Anthony), limitted docker logs from daemon.json.
I still get ops logs written to both logs pool and ops log file
(ops-log-ceph-client.rgw.hostname.log).

How to stop logging ops log on rgw disk and keep logs on logs pool?
Current config:
global                                                advanced  debug_rgw
                                    0/0
global                                                advanced
 rgw_enable_ops_log                         true
global                                                advanced
 rgw_ops_log_rados                           true

Thank you!

-- 
Paul Jurco


On Fri, Nov 22, 2024 at 6:11 PM Paul JURCO <paul.jurco@xxxxxxxxx> wrote:

> Hi,
> we recently migrated to cephadm from ceph-deploy a 18.2.2 ceph cluster
> (Ubuntu with docker).
> RGWs are separate vms.
> We noticed syslog increased a lot due to rgw's access logs sent to it.
> And because we use to log ops, a huge ops log file on
> /var/log/ceph/cluster-id/ops-log-ceph-client.rgw.hostname-here.log.
>
> While having "rgw_ops_log_rados": "true", oplogs goes to both file and
> rados pool for logs.
> If false it doesn't log anything, as expected.
> How to stop dockered rgws to log to syslog and to a file on disk, but to
> keep opslog in logs pool?
>
> Config is:
> global                                                basic
> log_to_journald                                  false
> global                                                advanced
>  rgw_enable_ops_log                      false
> global                                                advanced
>  rgw_ops_log_rados                        true
>
> A few hours later after after enabling it back, after massive cleanup, it
> does logging ops but only to files.
> How to get ops logs in rados pool and access log to a file on disk but not
> on syslog?
> I have add this to daemon.json to limit access logs to accumulate on
> /var/log/docker/containers/rand/rand/json.log file:
>
> {
>   "log-driver": "local",
>   "log-opts": {
>     "max-size": "512m",
>     "max-file": "3"
>   }
> }
>
>
> Thank you!
> Paul
>
_______________________________________________
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