Is it possible to use linux logrotate to manage Yugabyte logs?

How to rotate Yugabyte logfiles? E.g. yb-tserver.INFO is link to file having name based on time like yb-tserver.tiira.jk.log.INFO.20200130-201058.12355. Can logrotate manage these types of lognames and possibly recreate the link?

If it is possible to use logrotate then what would be an example configuration for having max 5 compressed history files and rotate when log size is 10MB?

Thank you for your support!

Hi @jk-1

Sorry for the late reply. Currently we have an open issue regarding this: [docdb] Better log rotation · Issue #3604 · yugabyte/yugabyte-db · GitHub

Can you also try GitHub - realzeitmedia/glogrotate: logrotate for go's glog directories in the meantime ?