Issue description
This article provides troubleshooting guidance for cases where no data appears under DDL/DML report in SQL Server auditing report.
Possible cause
Advance Auditing not enabled: This may occur if you have not enabled Advanced Auditing or if the user account used does not have sufficient permission to set audit policies in your SQL Server instance.
Audit Policies are not configured properly in your SQL Server instance.
Event ID = 33205 are not being logged in Event Viewer.
Event Viewer does not hold the events for more than the monitoring interval.
Misconfiguration of the log collection filter.
You lack a license
Prerequisites
Need access to EventLog Analyzer console with an administrator role or custom role that has permission to view SQL Server reports and configure SQL Servers.
Need access to the SQL Server.
A SQL Server instance authentication account with the following permission:
Server roles | User mapping | Securables |
public server admin
| public | Connect SQL Alter any server audit
|
Steps to follow
There are two areas where you need to review if the data is not populated in the Reports section:
I. Configuration in the EventLog Analyzer user interface
II. SQL Server troubleshooting
I. Configuration in EventLog Analyzer user interface
Log in to the EventLog Analyzer console.
Navigate to Settings > Database Audit > SQL Server.
If the instance is not added, then refer to this page: How to add a SQL Server instance in EventLog Analyzer.
If Advanced Auditing is not enabled under SQL Server Instance Configuration, add the Instance Name and Port number used by SQL server.
Learn more about identifying the port number at the end of this document.
Set the Instance Authentication type and enter the credentials.
If you are unable to verify the credentials in Advanced auditing, refer to this page to resolve the issue: Troubleshooting: MicroSoft SQL Server advanced auditing verification failed.
Note 1: The above mentioned credentials is the same as the user logon credential for the SQL Server instance.Note 2: Enabling advanced auditing will create an audit policy and disabling advanced auditing will remove the audit policy on this SQL Server instance. Click here to learn more.
Basics of SQL event:
Event Type: Application
Event ID: 33205
If the above steps did not get the reports, check whether you have configured your SQL Server for Windows auditing. If yes, proceed with the next step; else, skip to II. SQL Server troubleshooting.
Navigate to Settings > Log Source Configuration > Devices > Windows Device. Verify whether the Last Message Time reflects the present timestamp, indicating recent event collection. Additionally, ensure the Device Status is marked as Success to confirm that logs are being collected properly.
Case 1: Events are not collected in present, but the status is marked as Success
Check out II. SQL Server troubleshooting and check whether the Events are recorded in the respective server's Event Viewer.
Case 2: Events are not collected in present and status is not marked as Success
If the status is not updated as success but is marked as any other errors—like agent not communicating, service status unavailable, RPC server unavailable, or Access Denied—the log collection may not happen as intended. You need to resolve the error to have seamless log collection before proceeding with further steps. Refer to the following articles to resolve the error and check whether the data starts to populate:
Error: Agent troubleshooting : EventLog Analyzer
Error: service status unavailable : EventLog Analyzer
Error : RPC server unavailable - EventLog Analyzer
Error: Access Denied - EventLog Analyzer
Once the status is updated, check whether the log collection happens and if the data is available in the reports.
If the issue persists, check out II. SQL Server troubleshooting and check whether the Events are recorded in the respective server's Event Viewer.
II. SQL Server troubleshooting
Step 1: Check whether Events are recorded in the native
RDP to SQL server where instance is hosted.
Log in to your SQL Server.
Press Win + R to open the Run window, type and enter eventvwr.msc to open Event Viewer, expand Windows Logs, then select Application.
If you notice Event ID 521 (Unable to Log Events to Security Log), Windows OS does not log Security events in Event Viewer. Refer to the following Windows documents to resolve this issue:
Other possibilities for having Event ID 521 and its fixes are as follows.
Security log full
Open Event Viewer and navigate to Windows Logs, then Security.
Check whether the log size has reached its limit.
Increase the maximum log size, as mentioned in Step 3
Event logging is disabled
Open Event Viewer, then expand Windows Logs.
Right click Application, then choose Properties to check whether logging is enabled.
Windows Event Log service is not running
Open the Run window (Win + R), then type and enter services.msc.
Locate Windows Event Log service, ensure it is running, and set to Automatic.
Step 2: Check whether audit policies are enabled in the SQL Server instance to record the events
Open SQL Server Management Studio on the Windows machine in which SQL Server is installed, and connect to the required instance.
Click the Security option.
The Server Audit Specifications section should have an audit specification with a name starting with "ME_LOG360". Ensure it is enabled.
Double-click the audit specification:
Find the name of the mapped audit in the Audit field. An audit with the same name should be present under the Audits section (Security > Audits). Ensure it is enabled.
The Audit Action Type should contain the following policies:
SCHEMA_OBJECT_ACCESS_GROUP
BACKUP_RESTORE_GROUP
DATABASE_ROLE_MEMBER_CHANGE_GROUP
SERVER_ROLE_MEMBER_CHANGE_GROUP
FAILED_LOGIN_GROUP
SUCCESSFUL_LOGIN_GROUP
DATABASE_CHANGE_GROUP
DATABASE_OBJECT_CHANGE_GROUP
DATABASE_PRINCIPAL_CHANGE_GROUP
SCHEMA_OBJECT_CHANGE_GROUP
SERVER_PRINCIPAL_CHANGE_GROUP
LOGIN_CHANGE_PASSWORD_GROUP
SERVER_STATE_CHANGE_GROUP
Step 3: Check whether Event Viewer is holding events for more than the monitoring interval (default: 10 minutes)
EventLog Analyzer cannot collect the events in the Event Viewer if they are getting overwritten with new events before EventLog Analyzer can collect them. Follow these steps to
Open Event Viewer and choose Windows Logs, right click Application, t select Properties.
In the Log Properties - Application dialog box, ensure the maximum log size is set to at least 4GB to withstand the log flow rate. Also, enable the option to Overwrite events as needed (Oldest events first).
Event Viewer must hold the logs for at least 15 minutes if the log collection mode is set to 10 minutes of interval.
Tips
In the SQL Server Configuration Manager console, click SQL Server Network Configuration.
Double-click Protocols for (the required instance). In the center pane, under the Protocol Name column, ensure TCP/IP is Enabled. If Disabled:
Double-click TCP/IP, toggle the Enabled status from No to Yes, then click OK.
Restart the SQL Server instance.
In the SQL Server Configuration Manager console, click SQL Server Network Configuration.
Double-click Protocols for (the required instance). In the center pane, under the Protocol Name column, double-click TCP/IP.
In the TCP/IP Properties pop-up, click the IP Addresses menu, and go to the IPAll section at the bottom.
Ensure that the TCP Dynamic Ports field is empty.
How to reach support
Gather related information of the above troubleshooting steps and click here to reach the support team for any assistance.