Note
This parameter is available starting with V1.4.
Description
enable_syslog_recycle specifies whether to enable the recording of old logs before the OBServer node starts. It works with max_syslog_file_count to determine whether the recycling logic considers old log files.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | BOOL |
| Default value | False |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
This feature only takes effect 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.
Examples
Enable the recording of old logs before the OBServer node starts.
obclient> ALTER SYSTEM SET enable_syslog_recycle=True;