Yugabyte Log Rotation

Hi, I would like to know if yugabyte does any log rotation?


For yb-tserver/yb-master the log rotation size is controlled by the --max_log_size gflag.

--max_log_size=256 will limit each file to 256MB.
The glog default size is 1.8GB if someone is not passing this argument.

YSQL (we also have the additional postgres.log) has daily and size based log rotation for postgres*.log files - i.e. a new log file will be created per day (or after 10 MB size). However, there is no purging of older log files.

While log purging is only available in Yugabyte Platform.

Got it! Thank you so much!