View a SQL Server Audit Log
Applies to: SQL Server
This article describes how to view a SQL Server audit log in SQL Server by using SQL Server Management Studio.
Permissions
Requires the CONTROL SERVER permission.
Using SQL Server Management Studio
To view a SQL Server audit log
In Object Explorer, expand the Security folder.
Expand the Audits folder.
Right-click the audit log that you want to view and select View Audit Logs. The Log File Viewer - server_name dialog box opens. For more information, see Log File Viewer F1 Help.
When finished, select Close.
Microsoft recommends viewing the audit log by using the Log File Viewer. However, if you're creating an automated monitoring system, the information in the audit file can be read directly by using the sys.fn_get_audit_file
function. Reading the file directly returns data in a slightly different (unprocessed) format. For more information, see sys.fn_get_audit_file (Transact-SQL).
Related content
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho