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 Onlyto list active servers, list jobs, get a single job, or download a job archive.Global Ownerto create a job, extend a job, retry a job, or delete a job.
Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
Endpoints
The following lists the endpoints available for the Ops Manager Server Log Collection resource.
Method | Endpoint | Description |
|---|---|---|
| Lists active servers eligible for log collection. | |
| Creates a new server log collection job. | |
| Retrieves all server log collection jobs. | |
| Retrieves a single server log collection job. | |
| Downloads the archive for a completed log collection job. | |
| Extends the expiration of a log collection job. | |
| Retries the failed tasks in a log collection job. | |
| Deletes a log collection job and its archive. |