Querying and Downloading Binlogs (OBT)
Binlogs record all DDL and DML statements (except data query statements). You can download binlogs to a local PC for further analysis.
This section describes how to enable binlog, and then query and download binlogs on the TaurusDB console.
Billing
Binlogs are stored in OBS buckets. For the billing details, see How Is TaurusDB Backup Data Billed?
Prerequisites
- Binlog can only be enabled when the following conditions are met:
- If the kernel version of your DB instance is earlier than 2.0.45.230900, the value of log-bin must be ON. To view and modify the parameter value, see Modifying Parameters of a DB Instance.
- If the kernel version of your DB instance is 2.0.45.230900 or later, the value of rds_global_sql_log_bin must be ON.
For details about how to check the kernel version, see How Can I Check the Version of a TaurusDB Instance?
- Before viewing and downloading binlogs, you need to enable binlog by referring to Enabling Binlog.
Constraints
To use binlog, set the log-bin or rds_global_sql_log_bin parameter to ON. To query or download binlogs on the management console, submit a request.
Enabling Binlog
- Log in to the management console.
- Click
in the upper left corner and select a region and project.
- Click
in the upper left corner of the page, choose .
- On the Instances page, click the instance name.
- In the navigation pane, choose Logs.
- Click the Binlog tab.
- Click Configure Binlog. In the displayed dialog box, enable Binlog and set Retention Period.
Figure 1 Configuring binlog
- The retention period ranges from 1 to 180 days.
- After binlog is disabled, the generated logs will be automatically deleted after the retention period expires. Deleted logs cannot be restored. Exercise caution when disabling binlog.
Querying and Downloading Binlogs
- Log in to the management console.
- Click
in the upper left corner and select a region and project.
- Click
in the upper left corner of the page, choose .
- On the Instances page, click the instance name.
- In the navigation pane, choose Logs.
- Click the Binlog tab.
Figure 2 Viewing binlogs
- View binlogs generated in the last 15 minutes, last 30 minutes, last 1 hour, last 24 hours, last 7 days, last 30 days, or a custom time range.
Figure 3 Selecting a time range
- Click Download in the Operation column to download a binlog to a local PC.
- View binlogs generated in the last 15 minutes, last 30 minutes, last 1 hour, last 24 hours, last 7 days, last 30 days, or a custom time range.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot