Downloading Slow Query Logs of a GaussDB Instance
GaussDB allows you to download slow query logs. Slow query logs help you locate slow SQL statement execution problems.
Precautions
- CNs and DNs of the instance are normal.
- The IaaS network is normal.
- Logs generated in the last 12 hours are collected for the analysis of slow query logs.
Slow Query Logs
- 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 and choose .
- On the Instances page, click the name of the target instance to go to the Basic Information page.
- In the navigation pane, choose Log Analysis.
- The system checks whether there has been a slow query log task in the last 5 minutes and, if there is not, generates one. Click the Slow Query Logs tab. Click Download in the Operation column of the record whose status is Preparation completed.
After the log is downloaded, you can analyze the log on the local PC.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.