Policy Server Guides › Policy Server Administration Guide › Configuring Policy Server Logging › Configure the Policy Server Logs › How to Include SiteMinder Administrative Audit Events in Reports
How to Include SiteMinder Administrative Audit Events in Reports
If you already have a SiteMinder report server and an audit database, you can configure your SiteMinder Policy server to collect administrative audit events that you can import one the following report database types:
- Oracle database
- Microsoft SQL Server database
After the data is imported, you can include it in any reports you generate using the SiteMinder report server.
A sample Perl script is installed with the SiteMinder Policy Server that you can customize to meet your needs.
To include administrative audit events in your SiteMinder reports, use the following process:
- Copy the sample scripts on the Policy Server by doing the following:
- Open the following directory:
policy_server_home\audit\samples
Note: The following directories are the default locations for the policy_server_home variable:
- C:\Program Files\ca\siteminder (Windows)
- /opt/ca/siteminder (UNIX, Linux)
- Locate the following files:
- Harvest.bat (for Windows)
- Harvest.sh (for UNIX, Linux)
- ProcessAudit.pl
- Categories.txt
- Copy the previous files to the following directory:
policy_server_home\audit
- (Optional) Customize the ProcessAudit.pl script.
- After the next scheduled run of the XPSAudit command, copies of the audit logs are created using the comma-separated value (CSV) format, and stored as .TMP files in the following directory:
policy_server_home\audit_R6tmp
- Copy the .TMP files from the previous directory on the Policy Server to the server that hosts your audit database.
- Create one of the following files to map the CSV-formatted contents of the .TMP files to your database schema:
- control_file_name.ctl (control file for Oracle databases)
- format_file_name.fmt (format file for SQL Server databases)
Note: For more information, see the documentation or online help provided by your database vendor.
- On the server that hosts your audit database, run whichever of the following commands is appropriate for your type of database:
- sqlldr (for Oracle databases)
- bcp (for SQL Server databases)
Note: For more information, see the documentation or online help provided by your database vendor.
- After the command finishes, use the reports server to generate a report of administrative events.
The administrative audit events appear in the report.