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@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to