Table of Contents

Search

  1. About the Data Vault Administrator Guide
  2. Introduction to the Data Vault
  3. Data Vault Service Startup and Shutdown
  4. Data Vault Configuration
  5. Data Vault SSL Setup
  6. Data Vault ODBC Setup
  7. Data Vault Administration
  8. Data Repartitioning
  9. Partial Data Vault Copy
  10. Archived Data Migration
  11. Bulk File Uploader
  12. Data Vault Administration Tool
  13. Data Vault Logs
  14. User Account Privileges
  15. ssasql Command Line Program
  16. Data Vault Audit Log
  17. Sample Configuration Files

Data Vault Administrator Guide

Data Vault Administrator Guide

Step 3. Create a Rule to Rewrite SQL Request Statements

Step 3. Create a Rule to Rewrite SQL Request Statements

Create a rule that identifies specific strings of text in an SQL request statement and then rewrites the SQL request to append an audit tag.
  1. In the
    Rule Editor
    window, right-click the security rule set and select
    Append rule
    .
    The
    Append Rule
    window appears.
  2. Enter a name for the rule, such as Match and Rewrite.
  3. To configure the matcher, select
    Text
    from the menu next to Matching Method.
    The text matcher identifies a specific string of text within an SQL request sent to the Data Vault.
  4. In the text box, enter a statement in a regular expression that identifies the archived database columns that you want to trigger the audit functionality when the columns are included in an SQL request statement issued to the Data Vault.
    For example, if you want Data Vault to audit all SQL request statements that query the columns named EmpID, FIRSTNAME, LASTNAME, and SSN, enter the following statement:
    Select\s*(EmpID).*|.*(FIRSTNAME).*|.*(LASTNAME).*|.*(SSN).*
  5. Next to Identification Method, select
    Regular Expression
    .
  6. To configure the Action, select
    Rewrite
    from the menu.
  7. In the Alternate Statement text box, enter an SQL statement that includes the column names that you want to trigger the audit functionality. The statement must begin with "\(1)
    audit using
    " and end with "
    from resultset
    ". The "%" sign followed by a number designates column position.
  8. To configure the processing action, select
    Stop if applied
    from the menu.
  9. Select the check box next to "Log When Rule Is Applied."
    The Append Rule window contains areas for the rule name, description, matcher type, matching method text, action type, alternate statement, and processing action.
  10. Click
    OK.
  11. Click
    File
    Update Rules
    .

0 COMMENTS

We’d like to hear from you!