Use this endpoint to retrieve every Ops Manager server log collection job.
Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
Resource
GET /admin/omLogCollectionJobs
Required Roles
Requires that the API Key calling this endpoint have the
Global Read Only role.
Request Parameters
Request Path Parameters
This endpoint doesn't use HTTP request path parameters.
Request Query Parameters
Name | Type | Necessity | Description | Default |
|---|---|---|---|---|
| number | Optional | One-based integer that returns a subsection of results. |
|
| number | Optional | Number of items to return per page, up to a maximum of 500. |
|
| boolean | Optional | Flag that indicates whether to include all child jobs in the response. Each Ops Manager server log collection job has a child job for each combination of server and log type included in the request. |
|
| boolean | Optional | Flag indicating whether the response body should be in a prettyprint format. |
|
| boolean | Optional | Flag that indicates whether to wrap the response in an
envelope. Some API clients cannot access the HTTP
response headers or status code. To remediate this, set
|
|
Request Body Parameters
This endpoint doesn't use HTTP request body parameters.
Response
The response includes an array of result objects, an array of link objects, and the total number of result objects retrieved.
Name | Type | Description |
|---|---|---|
| array | Array of Ops Manager server log collection jobs. See results Embedded Document. |
| array | Array of one or more links to sub-resources or related resources. The relations between URLs follow Web Linking Specification (RFC 5988). |
| number | Total number of items in the result set. May exceed the
size of |
results Embedded Document
Each results element represents one Ops Manager server log
collection job.
Name | Type | Description |
|---|---|---|
| string | Unique 24-hexadecimal digit string that identifies this job. |
| string | Status of the job. Returns one of the following values:
|
| string | Timestamp, in ISO 8601 UTC format, when Ops Manager created the job. |
| string | Timestamp, in ISO 8601 UTC format, when the job expires and Ops Manager automatically deletes its data. |
| string | Timestamp, in ISO 8601 UTC format, when the job finished.
|
| array of strings | List of |
| array of strings | Log types included in this request. Returns one or more of the following values:
|
| number | Maximum requested size, in bytes, per log type per server. |
| string | Start of the time range filter, in ISO 8601 UTC format.
|
| string | End of the time range filter, in ISO 8601 UTC format.
|
| number | Total uncompressed size, in bytes, of the collected log data. |
| boolean | Flag that indicates whether Ops Manager truncated any child
job's collected data because the data reached
|
| string | URL from which you can download the archive. See Download Ops Manager Server Logs. |
| array | List of child jobs associated with this request. Ops Manager
includes this field only when you set |
childJobs Embedded Document
Each child job represents the log collection task for one server and one log type.
Name | Type | Description |
|---|---|---|
| string |
|
| string | Log type that this child job collects. Returns one of the following values:
|
| string | Status of this child job. Returns one of the following values:
|
| string | Timestamp, in ISO 8601 UTC format, when this child job started. |
| string | Timestamp, in ISO 8601 UTC format, when this child job
finished. |
| string | Error message that explains why this child job failed.
|
| boolean | Flag that indicates whether Ops Manager truncated this child
job's collected data because the data reached
|
| number | Total uncompressed disk space, in bytes, that this child job uses. |
Example Request
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \ --header "Accept: application/json" \ --include \ --request GET \ "https://<OpsManagerHost>:<Port>/api/public/v1.0/admin/omLogCollectionJobs?verbose=true&pretty=true"
Example Response
Response Header
401 Unauthorized Content-Type: application/json;charset=ISO-8859-1 Date: {dateInUnixFormat} WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false Content-Length: {requestLengthInBytes} Connection: keep-alive
200 OK Vary: Accept-Encoding Content-Type: application/json Strict-Transport-Security: max-age=300 Date: {dateInUnixFormat} Connection: keep-alive Content-Length: {requestLengthInBytes} X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
Response Body
{ "links": [ { "href": "https://<OpsManagerHost>:<Port>/api/public/v1.0/admin/omLogCollectionJobs?verbose=true&pageNum=1&itemsPerPage=100", "rel": "self" } ], "results": [ { "id": "675a1234567890abcdef1234", "status": "SUCCESS", "creationDate": "2026-04-13T10:00:00Z", "expirationDate": "2026-04-20T10:00:00Z", "finishDate": "2026-04-13T10:02:30Z", "servers": [ "om-server-1.example.com", "om-server-2.example.com" ], "logTypes": ["APPLICATION", "HTTP_ACCESS"], "sizeRequestedPerFileBytes": 5242880, "logCollectionFromDate": null, "logCollectionToDate": null, "uncompressedSizeTotalBytes": 8388608, "sizeLimitHit": true, "downloadUrl": "https://<OpsManagerHost>:<Port>/api/public/v1.0/admin/omLogCollectionJobs/675a1234567890abcdef1234:download", "childJobs": [ { "serverId": "om-server-1.example.com", "logCollectionType": "APPLICATION", "status": "SUCCESS", "startDate": "2026-04-13T10:00:05Z", "finishDate": "2026-04-13T10:01:30Z", "errorMessage": null, "sizeLimitHit": true, "uncompressedDiskspaceBytes": 5242880 }, { "serverId": "om-server-1.example.com", "logCollectionType": "HTTP_ACCESS", "status": "SUCCESS", "startDate": "2026-04-13T10:00:05Z", "finishDate": "2026-04-13T10:01:45Z", "errorMessage": null, "sizeLimitHit": false, "uncompressedDiskspaceBytes": 2097152 }, { "serverId": "om-server-2.example.com", "logCollectionType": "APPLICATION", "status": "FAILURE", "startDate": "2026-04-13T10:00:10Z", "finishDate": "2026-04-13T10:00:45Z", "errorMessage": "Failed to read log file: permission denied", "sizeLimitHit": false, "uncompressedDiskspaceBytes": 0 }, { "serverId": "om-server-2.example.com", "logCollectionType": "HTTP_ACCESS", "status": "SUCCESS", "startDate": "2026-04-13T10:00:10Z", "finishDate": "2026-04-13T10:02:00Z", "errorMessage": null, "sizeLimitHit": false, "uncompressedDiskspaceBytes": 1048576 } ] } ], "totalCount": 1 }