Log Reporting
Scenarios
If you enable log reporting for your DB instance, new logs generated for the instance will be uploaded to Log Tank Service (LTS).
Precautions
- Ensure that there are available LTS log groups and log streams in the same region as your instance.
Constraints
- Error logs and slow query logs cannot share the same log stream.
- If a structuring template (MySQL slow log template or MySQL error log template) has been bound to a log stream, ensure that the template type is the same as the log type when you select the log stream. For example, if a MySQL error log template has been bound to a log stream, the log stream cannot be selected for slow query logs.
Enabling Log Reporting in Batches
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Relational Database Service.
- In the navigation pane, choose .
- Select one or more instances and click Enable Log Reporting.
- Select an LTS log group and log stream and click OK.Note
- Error logs and slow query logs cannot share the same log stream.
- This request does not take effect immediately. There is a delay of about 10 minutes.
- To disable log reporting, select one or more instances and click Disable Log Reporting.
- In the displayed dialog box, click OK.
Parent topic: Log Management
- Scenarios
- Precautions
- Constraints
- Enabling Log Reporting in Batches