Managing System Logs
Scenarios
System logs contain logs generated while the database is running. These can help you analyze problems with the database. You can also download system logs for service analysis.
Viewing or Downloading System Logs
- Click
in the upper left corner and select a region. - Click
in the upper left corner of the page and choose Databases > Relational Database Service. - On the Instances page, click the target instance name to go to the Summary page.
- In the navigation pane on the left, choose Logs. On the System Logs page, click Log Details to view details about system logs.Figure 1 System log details

If System Log Ingestion to LTS is enabled, you can switch to the analysis view in the upper right corner of the page to see more details. For more information, see Managing Log Groups.
- You can select a log level in the upper right corner to view logs of the selected level. Currently, only INFO logs can be viewed.
- You can view system logs generated within the last month. To select a time range, click
in the upper right corner. - A maximum of 2,000 system log records can be queried. To view more log records, submit a service ticket.
- If the description of a log is truncated, locate the log and move your pointer over the description in the Description column to view details.
- Click
in the upper left corner and select a region. - Click
in the upper left corner of the page and choose Databases > Relational Database Service. - On the Instances page, click the target instance name to go to the Summary page.
- In the navigation pane on the left, choose Logs. On the System Logs page, click Downloads.Figure 2 Downloading system logs


- ERRORLOG refers to error logs. You can download a maximum of 30 rotated error log files at a time, with each not exceeding 20 MB.
- xxxx.xel refers to extended event logs.
- xxxx.trc refers to default trace logs.
- Logs whose names start with RDSAudit are audit logs. A GUID and timestamp are automatically added to an audit log name. For details, see Managing Audit Logs in System Logs.
- Locate a log to be downloaded and click Download in the Operation column. The system automatically loads the downloading preparation tasks. The loading duration is determined by the log file size and network environment.
- When the log is being prepared for download, the log status is Preparing.
- When the log is ready for download, the log status is Preparation completed.
- If the preparation for download fails, the log status is Abnormal.
- In the displayed dialog box, click OK to download the log whose status is Preparation completed. If you click Cancel, the system does not download the log and returns to the Downloads page.
If the size of a log to be downloaded is greater than 20 MB, you need to use OBS Browser+ to download it. For details, see Method 1: Using OBS Browser+.
The download link is valid for 5 minutes. After the download link expires, a message is displayed indicating that the download link has expired. You can close the window and repeat the procedure 4.a to try to download a log again.
- Click
in the upper left corner and select a region. - Click
in the upper left corner of the page and choose Databases > Relational Database Service. - On the Instances page, click the target instance name to go to the Summary page.
- In the navigation pane, choose Logs.
- On the System Logs tab page, click Ingest Logs to LTS in the upper right corner.
- In the displayed dialog box, select Error logs under Log Types, select a log group and log stream, and click OK.Figure 3 Configuring error log ingestion to LTS

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
