Overview
enable_syslog_recycle specifies whether to enable recycling of old logs generated before an OBServer node starts. Together with max_syslog_file_count, it determines whether the recycling logic considers old log files.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter. User tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | BOOL |
| Default Value | False |
| Value range |
|
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
This feature takes effect only when the value of the max_syslog_file_count parameter is set to a non-zero positive number. For more information about the max_syslog_file_count parameter, see max_syslog_file_count.
Configuration example
Sets the switch to enable or disable logging of old logs before an OBServer node starts.
obclient> ALTER SYSTEM SET enable_syslog_recycle=True;
References
log