How do I delete or cancel log analysis jobs?

Method: DELETE

You can delete or cancel a log analysis job based on host ID or on 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 delete or cancel.

DELETE log analysis job

A call to the entity/infrastructure/hosts/<hostId>/logs/jobs/<jobId> endpoint deletes or cancels log analysis job for the given host.

  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<hostId>/logs/jobs/<jobId>
  • SaaS https://{your-environment-id}<hostId>/logs/jobs/<jobId>

A call to the entity/infrastructure/hosts/<pgId>/logs/jobs/<jobId> endpoint deletes or cancels log analysis job for the given process group.

  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<pgId>/logs/jobs/<jobId>
  • SaaS https://{your-environment-id}<pgId>/logs/jobs/<jobId>

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

  • 202 - OK

    • Successful execution of the call
  • 400 - Bad Request

  • 404 - Not Found

    • Job not found