Setting Up Service Logging
Batch uses the OCI Logging service to capture and store logs produced by tasks. Setting up log groups and log objects in advance ensures you can monitor, debug, and audit the workloads.
To allow Batch workloads to write logs to OCI Logging, add the following IAM policies:
Allow any-user to manage log-content in compartment <your_compartment> where ALL { request.principal.type = 'batchcontextinfrastructure' }
For more information, see Creating a Log Group and Creating a Log.