Creating a BTS audit trail
You can create an audit trail for BTS processes and activities to track the progress of transactions. You can control the amount of audit logging. Follow the example to see a series of activations.
About this task
You can control the amount of audit logging that CICS® performs for each process, using the AUDITLOG and AUDITLEVEL attributes of the PROCESSTYPE definition. For detailed information about defining process-types, see CEDA DEFINE PROCESSTYPE.
Note the following considerations:
- When a process is first defined, BTS obtains the audit level and audit log information for the process from the installed PROCESSTYPE definition, and copies it into the process record. During the lifetime of the process, this copy of the audit information is used to determine auditing. If the auditing information is changed by, for example, a CEMT SET PROCESSTYPE command, this does not affect existing processes.
- If an installed PROCESSTYPE definition does not specify a CICS journal name in its AUDITLOG field, CICS does not do any audit logging for processes and activities of that type until the definition is replaced with one that does contain the name of an audit log.
- The AUDITLOG field must not specify the SMF data set.
- Several process-types can share the same audit log.
- In a sysplex, different parts of a process might run on different CICS regions. If you want to write audit records for all the parts, you must ensure that all the regions have the same audit log information in their installed PROCESSTYPE definitions. However, see Audit trail constraints when using DASD-only log streams.
Procedure
- Specifying the level of audit logging
- The AUDITLEVEL option of the PROCESSTYPE definition allows you to specify one of four logging
levels for processes of the defined type:
- ACTIVITY, activity-level auditing
- FULL, full auditing
- OFF, no auditing
- PROCESS, process-level auditing
To learn about what is audited under each level, see Table 1 in How it works: BTS audit trails.
Note: If you specify any value for AUDITLEVEL other than OFF, you must also specify the AUDITLOG
option of the PROCESSTYPE definition.
Results
If a request to write an audit record fails:
- CICS issues an error message.
- Auditing for processes of this process-type is suspended until the audit error is corrected and a CEMT SET JOURNALNAME(journal) ACTION(RESET) command is issued. If the reset completes successfully, auditing is resumed and a CICS message is issued to this effect. Some audit records are lost.