For analyzing MS SQL audit logs by EventLog Analyzer, you need to initially enable auditing in MS SQL server.
To enable auditing in MS SQL server you need to,
- Create a SQL Server Audit Object that can be used for auditing
- Create a Server audit specification
- Enabling the Audit Object
Once the SQL Server Audit Object and Server audit specification is created an configured, EventLog Analyzer will start collecting and analyzing the MS SQL audit application logs.
MS SQL Audit Logging is supported for MS SQLEnterpriseandDatacenterEditions alone
Note:Ensure that you have added MS SQL Server as a host to EventLog Analyzer server. If not,add MS SQL Server as a host
Create a SQL Server Audit Object
To create a SQL Server Audit Object, go to Object Explorer in MS SQL Server Management Studio
-
In the object explorer, recursively expand the 'Security' node to 'Audits'
-
Right click on the 'Audit' and select 'New Audit'. This opens 'Create New Audit' page
-
In the 'Audit Name'field, specify the name for the Audit Object
- In the'Audit destination'field, select'Application Log'type
Click on OK to accept the other default settings and save the new audit specification.
Creating Server Level Audit Specification
In the object explorer, right click on'Server Audit Specification'and click on'New Server Audit Specification'.This opensCreate New Server Audit Specificationwindow
-
In theNamefield, specify the name for the Server audit
-
Select the your Audit object from the'Audit'field drop down menu
-
In theActions table,select the followingAudit Action typefrom the list
- FAILED_LOGIN_GROUP
- SUCCESSFUL_LOGIN_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
- SCHEMA_OBJECT_ACCESS_GROUP
- SERVER_ROLE_MEMBER_CHANGE_GROUP
- DATABASE_ROLE_MEMBER_CHANGE_GROUP
- DATABASE_CHANGE_GROUP
Click on OK to save the server audit specification.
Enabling Audit Object
Now you need to enable the audit object created. Click on Auditsnode inObject Explorerand right click on the audit object created, and then click onEnable Audit.This will start the audit. EventLog Analyzer will now collect these audit logs from the MS SQL server that is added as a host to the EventLog Analyzer Server.