For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Ops Manager Server Log Collection Jobs

You can use the Ops Manager API to collect logs from Ops Manager application servers and backup daemons. After you submit a request, Ops Manager distributes the work to the target servers, which collect their logs in background jobs. Use the following endpoints to create, modify, and retrieve log collection jobs.

For backup daemon log collection, Ops Manager queues collection tasks in a dedicated daemon queue. Each backup daemon claims and processes its tasks asynchronously, uploading the collected logs to the Application Database. A reconciler process monitors daemon task health, times out unclaimed tasks, and syncs completed log collection tasks back to Ops Manager.

To use the Ops Manager Server Log Collection resources, you must have one of the following roles:

  • Global Read Only to list active servers, list jobs, get a single job, or download a job archive.

  • Global Owner to create a job, extend a job, retry a job, or delete a job.

Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0

The following lists the endpoints available for the Ops Manager Server Log Collection resource.

Method
Endpoint
Description

GET

Lists active servers eligible for log collection.

POST

Creates a new server log collection job.

GET

Retrieves all server log collection jobs.

GET

Retrieves a single server log collection job.

GET

Downloads the archive for a completed log collection job.

PATCH

Extends the expiration of a log collection job.

POST

Retries the failed tasks in a log collection job.

DELETE

Deletes a log collection job and its archive.

Rate this page