SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 42925: You cannot audit SAS® library Open objects in the standard SAS logging facility

DetailsCodeOutputHotfixAboutRate It

Currently, you cannot audit SAS library Open objects such as dates, user IDs, or path information in the standard logging facility. As a workaround, the Application Response Measurement (ARM) infrastructure enables you to audit such objects or events by using messages from the ARM_DSIO subsystem.

Click the Hot Fix tab in this note to access the hot fix for this issue.

This hot fix adds a new logger category, Audit.Data.Dataset.Open, to the LOG4SAS Audit namespace. Sites that do not want to implement the entire ARM infrastructure can use this new logger category to audit Open events for SAS data sets. The Audit events produce output and data that are critical to the proper auditing of activities for SAS data libraries. The Audit events include the following information:

  • Current Date and Time
  • Active User ID
  • SAS Libref name
  • SAS Library Engine name
  • SAS Library Member name
  • SAS Library Member type
  • SAS Library file physical path

In order to produce output that includes the information above, you must add appender and logger code to the log configuration file (logconfig.xml) for any server, or servers, being audited, such as the SAS® Stored Process Server.

Note: You should make a backup copy of the logconfig.xml file before you modify the file. Type the correct path for your server in the fileNamePattern value. The following example shows the appender and logger code that should be added to the configuration file:

value="/SAS92/Lev1/SASApp/WorkspaceServer/Logs/Audit.Library_WorkspaceServer_%d_%S{hostname}_%S{pid}.log"
<!-- Audit.Library.Dsio File Appender Defintion --> <appender name="AuditLibraryFile" class="FileAppender"> <param name="Append" value="true"/> <param name="ImmediateFlush" value="true"/> <param name="fileNamePattern" value="<sasConfigDir>/Lev1/<SASApp>/<ServerName>/Logs/Audit.Library_<server>_%d_%S{hostname}_%S{pid}.log"/> <layout> <param name="ConversionPattern" value="DateTime=%d Userid=%u %m"/> </layout> </appender> <!-- Audit.Data.Dataset.Open logger definition --> <logger name="Audit.Data.Dataset.Open" additivity="false"> <appender-ref ref="AuditLibraryFile"/> <level value="Trace"/> </logger>

The following example shows a sample of the logger output:

DateTime=2011-04-12T09:41:51,420 Userid=sasdemo Libref=MYDATA Engine=V9 Member=CLASS MemberType=DATA Openmode=OUTPUT Path=\sas\test\data

Use the code in the Full Code Tab to read the audit events from the log file.

For more information on loggers and appenders, you should consult the following publications:



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for 64-Bit Itanium-based Systems9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows XP 64-bit Edition9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft® Windows® for x649.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 for x649.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 20089.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows Server 2008 for x649.21_M39.39.2 TS2M39.3 TS1M0
Microsoft Windows XP Professional9.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Enterprise 32 bit9.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Enterprise x649.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Home Premium 32 bit9.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Home Premium x649.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Professional 32 bit9.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Professional x649.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Ultimate 32 bit9.21_M39.39.2 TS2M39.3 TS1M0
Windows 7 Ultimate x649.21_M39.39.2 TS2M39.3 TS1M0
Windows Vista9.21_M39.39.2 TS2M39.3 TS1M0
Windows Vista for x649.21_M39.39.2 TS2M39.3 TS1M0
64-bit Enabled AIX9.21_M39.39.2 TS2M39.3 TS1M0
64-bit Enabled HP-UX9.21_M39.39.2 TS2M39.3 TS1M0
64-bit Enabled Solaris9.21_M39.39.2 TS2M39.3 TS1M0
HP-UX IPF9.21_M39.39.2 TS2M39.3 TS1M0
Linux9.21_M39.39.2 TS2M39.3 TS1M0
Linux for x649.21_M39.39.2 TS2M39.3 TS1M0
OpenVMS on HP Integrity9.21_M39.39.2 TS2M39.3 TS1M0
Solaris for x649.21_M39.39.2 TS2M39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.