As part of the setup process, the table where archived audit log data will be stored is created in an external SQL database.
Whenever the archive process is run (which may be from the xcUtilities interface, from a command line, the ControlPoint application interface, or through Windows Task Scheduler), the process carries out the following actions:
1Checks the parameter value of the ControlPoint Configuration Setting ArchiveAuditLogIncludeWeb
Applications for a list of Web applications for which audit log data should be archived. If the parameter value is null, all Web applications will be included in the archive process.
EXCEPTION: If the archive process was initiated from the ControlPoint application interface, all selected objects will be included, regardless of this setting.
See also Specifying the Web Applications to Include in the Archiving Process.
2For each Web application to be processed:
a)Uses the date for the earliest audit record in the content database(s) for the selected Web application as the start date.
b)Retrieves audit log records within the Web application that were created between the start date and the next process interval date, as determined by the ControlPoint Configuration Setting ArchiveAuditLogProcessInterval.
NOTE: By default, the process interval is one (1) hour, but this value can be changed. See Changing the Archive Audit Log Process Interval (Optional).
c)Writes the audit data for the process interval to the external database table as a database transaction.
NOTE: If an exception occurs, data will not be committed to the external database, the transaction will be rolled back, and the archiving process will stop. Exception conditions will be captured in the ControlPoint Task Audit.
d)Once the audit records have been committed to the external database, deletes the corresponding records from the content database.
NOTE: If an exception occurs during the deletion of audit records for a site collection, all the records for the site collection with the current task ID will be removed from the external database (to prevent duplication of data that still exists in the content database), and the archiving process will stop. Exception conditions will be captured in the ControlPoint Task Audit.
e)Advances to the next process interval and repeats substeps b) - d) until the last date to be processed (as determined by the user-specified number of days to keep in SharePoint) is reached.
3Repeats Step 2 for each Web application to be processed.
If you have many months or even years' worth of accumulated data to archive, doing all of it in a single operation can be resource-intensive and can perform slowly. When you run the audit log archive process, however, you have the option of specifying the number of days' worth of audit log data to keep in the database. If, however, you have many months or even years' worth of accumulated data to archive, doing all of it in a single operation can be resource-intensive and can bog down your system. It is recommended, therefore, that when you initially run the archiving operation you specify a relatively large amount of data to retain, then incrementally reduce that number with each subsequent run of the operation until you have reached the number of days' worth that you want to retain on an ongoing basis.
EXAMPLE:
Suppose 1,000 days' worth of audit log data has accumulated on your farm, but going forward you only want to retain 60 days' worth. Depending on the size of your farm, archiving 940 days worth of data in a single operation might tie up the system for several hours. To avoid this problem, the first time you run the process you may want to choose to save 800 days' worth (that is, archive 200 days' worth) of audit log data.
The next time you run the operation, you may want to bring the number down to 600 (that is, archive another 200 or so days' worth), and so on, until you have reduced the amount of audit log data in the database to a manageable amount. You can then schedule the operation to run on a regular basis, saving only the amount that you want to retain on an ongoing basis.
The archive setup process consists of the following tasks:
·Creating the Audit_Log_Transfer Database table, where archived audit log data will be stored.
·Adding the connection string for the database where the Audit_Log_Transfer Database table resides to the ControlPoint application.
The first step in the process of setting up an audit log data archive is to create the Audit_Log_Transfer table. You can create this table on the server and in the database of your choice. It is important to note, however, that the archiving process does not compress audit log data, but rather transfers it as is from the content database tables to the Audit_Log_Transfer table. (Think of this table as a data warehouse.) Therefore, you should keep space requirements in mind when selecting the location for this table, especially if you are archiving data from large, active site collections for which an extremely large number of audit records may be generated.
Log in Account Requirements:
On the server that hosts the database to which you want to archive audit log data, you must be logged in with an account that has permissions to create a new database table in the selected database.
TIP: You may want to consider logging in as the ControlPoint Service Account. Because it is the account that actually writes records into the database, you would not need to grant permissions to any other account.
To create the Audit_Log_Transfer Database Table:
1If you want the audit archive data to reside in a new database, create that database on the appropriate server.
2On the Web front-end server on which ControlPoint was initially installed, navigate to the folder C:\Program Files\Metalogix\ControlPoint\ControlPointFeatures\Packages.
3If you will be creating the Audit_Log_Transfer Database Table on a different server, copy the file script_create_audit_archive_tables.adt to that server.
4Open the file script_create_audit_archive_tables.adt in SQL Server Management Studio.
5Copy all of the text in the file.
6In the Object Explorer (left pane), select the database in which you want to create the archive table.
7Right click and choose New Query.
8Paste the text that you copied into the right pane.
9From the Query menu or toolbar, choose Execute to create the Audit_Log_Transfer table in the selected database.
© ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center