SQL Auditing templates
Best Practice SQL Auditing template For instruction on how to assign the default Best Practices SQL Auditing template to an agent configuration, see Getting Started.
To create a new SQL server auditing template:
2 Click Auditing.
3 Select SQL Server (under the Applications heading in the Auditing task list) to open the SQL auditing page.
4 Click Add to start a wizard which steps you through the process of creating a SQL auditing template.
▪ Select the Default option to audit the default instance. Select Add to add it to the SQL Instance list.
▪ Select the Named option to audit a named instance. Select the browse button, select a SQL instance from the list displayed and click OK to close the dialog. Click Add to add the SQL instance to the auditing list.
▪ Select All Instances to audit all the SQL instances on the server. Click Add to add it to the SQL Instance list.Select an entry from the list box at the top of the page, expand the Add button and click one of the following commands:
▪ Use the Add | Add This Event button to add individual events.
▪ Use the Add | Add All Events in Facility option to add all events in the selected facility.
▪ In the Filter where fields, enter the operator and value to use in the filter. In the first field (left) use the drop-down menu to select the operator (e.g., Like or Not Like; =, !=, <= or >=). The operators listed are based on the entry selected in the Filters list above. In the second field (right) enter the value or string to use in the filter.
▪ Click Add to add it to the Filter list.
NOTE: To add multiple filters, select the column filter row after which the new filter is to be added, and then use the Filter where fields to specify the new criteria. By default, when multiple filters are specified these filters are ‘ANDed’ together and all filters must be met in order to be considered a match. To use the ‘OR’ operator instead, click in the left-most column of a column filter row and select OR from the drop-down. When filters are ‘ORed’ together, then only one of the filters must be met in order to be considered a match.
9 To create the template and assign it to an agent configuration, expand Finish and select Finish and Assign to Agent Configuration.
▪ Select a configuration, then select the template, click in the corresponding Assigned cell and click Yes.
▪ On the Agent Configuration page, select the agents assigned to use the modified agent configuration and click Refresh Configuration to ensure the agents are using the latest configuration.
To modify a template:
3To disable an auditing template:
1
▪ Place your cursor in the Status cell for the template to be disabled, click the arrow control and select Disabled.The entry in the Status column for the template will change to ‘Disabled’.
2 To re-enable the auditing template, use the Enable option in either the Status cell or right-click menu.To disable the auditing of a SQL instance in a template:
▪ Place your cursor in the Status cell for the SQL instance to be disabled, click the arrow control and select Disabled.The entry in the Status column for the selected SQL instance will change to ‘Disabled’.
2 To re-enable the auditing of a SQL instance, use the Enable option in either the Status cell or right-click menu.To delete an auditing template:
1 On the SQL auditing, select the template to be deleted and click Delete | Delete Template.To delete a SQL instance from a template:
1 On the SQL auditing, select the SQL instance to be deleted and click Delete | Delete SQL Instance.
SQL Auditing wizard
The SQL Auditing wizard is displayed when you click Add or Edit on the SQL Auditing page. This wizard steps you through the process of creating a new template, identifying the SQL instances to be included in the template. You will also use this wizard to modify a previously defined template.
Create or modify a SQL Auditing Template page
On the first page of the wizard, enter a name for the template and select the SQL instance to audit.
Select one of the following options:
• Default - This option is selected by default and will use the default SQL instance (MSSQLSERVER) found on an agent that is using the SQL Server Auditing template.
• Named - Select this option to use a named instance instead of the default SQL instance. When this option is selected, the name field will be activated allowing you to enter a SQL named instance. Or use the browse button to the right of this field to select from a list of available servers. Selecting the browse button opens the Select a SQL Instance dialog which displays a list of available servers.
• All Instances - Select this option to audit all SQL instances on a SQL server.Use to move the entry in the Audit SQL Instance text box to the selection list.
NOTE: Even if you select the Default SQL instance or All Instances, you must click Add to include it in the SQL Instance list.Select an entry in the selection list and click Remove to remove it from the template.
This grid displays the following information for each event class:
• Facility - the facility to which each event class belongs
• Event Class - the events available for auditing
• Severity - the current severity level assigned to each event
• Status - indicates whether the event is currently enabled or disabledUse to add the selected event class to the Audit list box at the bottom of the page.
The data grid across the top of the page displays the SQL columns available for filtering. Select/highlight an entry and then use the Filter where fields to define the operator and values to be used in the filter.
In the second field (right) enter the value or string to be used in the filter.
NOTE: Valid wildcard characters that can be used in LIKE expressions for non-exact string matches include:
• Select DatabaseName from the Filters list.
• Select LIKE in the first field.
• Enter Change% in the second field.
• Click Add to add it to the list.NOTE: To add multiple filters, select the column filter row after which the new filter is to be added, and then use the Filter where fields to specify the new criteria. By default, when multiple filters are specified these filters are ‘ANDed’ together and all filters must be met in order to be considered a match. To use the ‘OR’ operator instead, click in the left-most column of a column filter row and select OR from the drop-down. When filters are ‘ORed’ together, then only one of the filters must be met in order to be considered a match.Use to move the filter entered above to the Column Filter list at the bottom of the page.
Use to remove the selected entry from the Column Filter list.
Use to change the operator or value of the filter selected in the Column Filter list.
This list box displays the column filters defined for this SQL Auditing template.
SQL Server event logging
For SQL Server events, event logging is disabled by default. When enabled, only configured SQL server activities are sent to the Change Auditor for SQL Server event log. See the Change Auditor for SQL Event Reference Guide for a list of the events that can be sent to this event log.
To enable SQL Server event logging:
1 Open the Administration Tasks tab and click Configuration.
2 Select Agent.
3
4 Click OK to save your selection and close the dialog.
SQL Data Level Auditing
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center