You can use the Ops Manager API to collect application server logs from one or more Ops Manager servers. After you submit a request, Ops Manager distributes the work to the target servers. Each server collects its logs in a background task, compresses and encrypts the result, and stores the archive in the Application Database. Use the following endpoints to create, monitor, download, extend, retry, and delete Ops Manager server log collection jobs.
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. |