Enable Java batch SMF logging for Liberty on z/OS
The z/OS Java batch SMF logging feature collects information about Java batch jobs and records the information to the z/OS SMF data store. When the z/OS Java batch SMF logging feature is activated and RACF is configured correctly, SMF type 120, subtype 12 records are generated. To enable z/OS Java batch SMF logging, add the batchSMFLogging-1.0 feature to server.xml.
We must issue RACF commands to authorize the server runtime to create SMF recording entries into the SMF framework before SMF records are written. The following example illustrates the RACF commands that we must issue:
RDEFINE FACILITY BPX.SMF UACC(NONE) PERMIT BPX.SMF ID(MSTONE1) ACCESS(READ) CLASS(FACILITY) SETROPTS GENERIC(FACILITY) REFRESH SETROPTS RACLIST(FACILITY) REFRESH
For a description of what is in the SMF type 120, subtype 12 record, see SMF type 120 subtype 12 record mapping.