Note
This parameter was introduced in V1.4.
Description
The enable_syslog_recycle parameter specifies whether to enable the switch for recycling logs generated before the OBServer node starts. It is used in conjunction with the max_syslog_file_count parameter to determine whether the recycling logic considers old log files.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | BOOL |
| Default value | False |
| Valid values |
|
| Modifiable? | Yes. You can execute the ALTER SYSTEM SET statement to modify this parameter. |
| Effective upon OBServer node restart? | No. The setting takes effect immediately. |
Considerations
This feature takes effect only when the value of the max_syslog_file_count parameter is a positive number other than 0. For more information about the max_syslog_file_count parameter, see max_syslog_file_count.
Example
Enable the option to record the old logs before the OBServer node starts.
obclient> ALTER SYSTEM SET enable_syslog_recycle=True;