Controlling where ZDT/CICS writes audit log records

You can use SAF to control whether ZDT/CICS writes audit log records to SMF, the user's audit log data set, or to both.

ZDT/CICS auditing FACILITY class resource names shows the SAF FACILITY class resource names used to control ZDT/CICS to logging and the user's audit log data set.

Example 1

  • Disable audit logging to a user data set for all ZDT/CICS users.
  • Enable ZDT/CICS audit logging to SMF for the PROD logonid.

You could write the following RACF® rules:

RDEL FACILITY FILEM.AUDIT3.TOSMF1
RDEL FACILITY FILEM.AUDIT3.TODSN1
RDEF FACILITY FILEM.AUDIT3.TOSMF UACC(NONE) OWNER(XXXXXXX)2
RDEF FACILITY FILEM.AUDIT3.TODSN UACC(NONE) OWNER(XXXXXXX)3
PE FILEM.AUDIT3.TOSMF ACC(READ) ID(PROD) CLASS(FACILITY)4
Explanation:
  1. Delete any existing facility rule.
  2. Define the facility rule for audit logging to SMF (TOSMF suffix). UACC(NONE) is used so that any user, for which there is no specific rule, has no access.
  3. Define the facility rule for audit logging to the user's audit log data set (TODSN suffix). UACC(NONE) is used so that any user, for which there is no specific rule, has no access.
  4. Allow logonid PROD to write audit log records (ACC(READ)) to SMF.

Example 2

  • Enable audit logging to a user data set for all ZDT/CICS users.
  • Enable demand logging for the following users, PROD1, PROD2, PROD3.

You could write the following RACF® rules:

RDEL FACILITY FILEM.AUDIT3.TOSMF1
RDEL FACILITY FILEM.AUDIT3.TODSN1
RDEF FACILITY FILEM.AUDIT3.TOSMF UACC(NONE) OWNER(XXXXXXX)2
RDEF FACILITY FILEM.AUDIT3.TODSN UACC(READ) OWNER(XXXXXXX)3
PE FILEM.AUDIT3.TODSN ACC(UPDATE) ID(PROD1) CLASS(FACILITY)4
PE FILEM.AUDIT3.TODSN ACC(UPDATE) ID(PROD2) CLASS(FACILITY)4
PE FILEM.AUDIT3.TODSN ACC(UPDATE) ID(PROD3) CLASS(FACILITY)4
Explanation:
  1. Delete any existing facility rule.
  2. Define the facility rule for audit logging to SMF (TOSMF suffix). UACC(NONE) is used so that any user, for which there is no specific rule, has no access.
  3. Define the facility rule for audit logging to the user's audit log data set (TODSN suffix). UACC(READ) is used so that any user, for which there is no specific rule, has read access, and can therefore write audit log records.
  4. Allow logonids PROD1, PROD2, PROD3 to write audit log records with automatic printing of the audit report ("Demand logging") (ACC(UPDATE)), to SMF.

Example 3

  • Disable audit logging completely for all ZDT/CICS users.
  • Enable dual logging for all ZDT/CICS users.

You could write the following RACF® rules:

RDEL FACILITY FILEM.AUDIT3.TOSMF1
RDEL FACILITY FILEM.AUDIT3.TODSN1
RDEF FACILITY FILEM.AUDIT3.TOSMF UACC(READ) OWNER(XXXXXXX)2
RDEF FACILITY FILEM.AUDIT3.TODSN UACC(READ) OWNER(XXXXXXX)3
Explanation:
  1. Delete any existing facility rule.
  2. Define the facility rule for audit logging to SMF (TOSMF suffix). UACC(READ) is used so that any user, for which there is no specific rule, has access (and can therefore write audit records to SMF).
  3. Define the facility rule for audit logging to the user's audit log data set (TODSN suffix). UACC(READ) is used so that any user, for which there is no specific rule, has access (and can therefore write audit records to the user's audit log data set).