Getting Detailed Log Content for a Job
Download detailed log content (a .log
file) for a job in Resource Manager.
Note
To prevent errors caused by unavailable files, wait a second after the job finishes to download the job information. An error appears if the job information doesn't exist yet. For example, a
To prevent errors caused by unavailable files, wait a second after the job finishes to download the job information. An error appears if the job information doesn't exist yet. For example, a
409
error appears if you attempt to download the Terraform configuration immediately after running a job. In this case, the Terraform configuration is still being copied to a location using a background process. The Terraform configuration is available about a second after the job finishes.For more information about detailed log levels and generating detailed log content, see Debugging Terraform.
Before You Begin
Before you can get detailed log content for a job, detailed log content must exist. For instructions on generating detailed log content for a job, see Debugging a Job by Generating Detailed Log Content.
These steps show how to get detailed log content for a job in a compartment. You can also get detailed log content for a job in a stack. - On the Jobs list page, select the job that you want to work with. If you need help finding the list page or the stack, see Listing Jobs.
- Next to Detailed log level, select Download detailed log file.
Use the
oci resource-manager job get-detailed-log-content
command and required parameters to get detailed log content for a job.oci resource-manager job get-detailed-log-content --job-id <job_OCID>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Use the GetJobDetailedLogContent operation to get detailed log content for a job.