Viewing Error Logs
Scenarios
You can use a stored procedure to query specific error logs.
Prerequisites
An RDS for SQL Server DB instance has been connected. For details about how to connect to an instance, see Connecting to a DB Instance.
Procedure
Run the following command to view the error logs:
EXEC master.dbo.rds_read_errorlog @FileID, @LogType, '@FilterText', '@FilterBeginTime', '@FilterEndTime';
- @FileID: specifies the log file sequence number. The value can be 0, 1, 2, etc.
- @LogType: specifies the log type. 1 indicates error logs and 2 indicates Agent logs.
- @FilterText: specifies the string used to filter the log content.
- @FilterBeginTime: specifies the start time for reading the logs.
- @FilterEndTime: specifies the end time for reading the logs.
For example, to obtain the Agent logs from 09/25/2018 to 09/30/2018 and set the filtering character string to recovery, run the following command:
EXEC master.dbo.rds_read_errorlog 0, 1, 'recovery', '2018-09-25', '2018-09-30';
What is your overall rating for this page?
Thank 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