How do I get the status of a log analysis job?

You can get the status of a log analysis job based on either host ID or process group. You must provide either a host ID or a process group ID, and the job ID of the log analysis job for which you want to get the status.

GET log retrieval status

A call to the entity/infrastructure/hosts/<hostId>/logs/jobs/<jobID> endpoint returns the status of a log analysis job for given host.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<hostId>/logs/jobs/<jobID>
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/hosts/<hostId>/logs/jobs/<jobID>

A call to the entity/infrastructure/hosts/<pgId>/logs/jobs/<jobID> endpoint returns the status of a log analysis job for given process group.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<pgId>/logs/jobs/<jobID>
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/hosts/<pgId>/logs/jobs/<jobID>

Once you execute the call, the following status codes indicate the success or failure of the call:

  • 200 - OK
    • Successful execution of the call
  • 400 - Bad Request
    • Wrong jobID parameter (provided jobID is invalid)
  • 404 - Not Found
    • Provided jobID was not found.