> ## Documentation Index > Fetch the complete documentation index at: https://bunny.net/docs/llms.txt > Use this file to discover all available pages before exploring further. # Get application logs ## OpenAPI ````yaml https://api-mc.opsbunny.net/docs/public/swagger.json get /apps/{appId}/logs openapi: 3.0.4 info: title: Public API description: 'Public API endpoints for user consumption. Release version: v1.12.2.2' version: '1.0' servers: - url: https://api.bunny.net/mc security: - AccessKey: [] paths: /apps/{appId}/logs: get: tags: - Applications summary: Get application logs operationId: GetApplicationLogs parameters: - name: appId in: path description: Identifier of the application whose logs are read. required: true schema: type: string - name: from in: query description: >- Lower bound of the time range. Defaults to 24 hours before `to` (or 24 hours ago) if omitted. schema: type: string format: date-time - name: to in: query description: >- Upper bound of the time range. Defaults to the current time if omitted. schema: type: string format: date-time - name: pod in: query description: >- Restricts results to the given pods. Accepts comma-separated values (`pod=pod-a,pod-b`) or repeated parameters (`pod=pod-a&pod=pod-b`). style: form schema: type: array items: type: string - name: container in: query description: >- Restricts results to the given containers. Accepts comma-separated values (`container=web,worker`) or repeated parameters (`container=web&container=worker`). style: form schema: type: array items: type: string - name: source in: query description: >- Restricts results to the given log sources. Accepts comma-separated values (`source=stdout,stderr`) or repeated parameters (`source=stdout&source=stderr`). style: form schema: type: array items: type: string - name: search in: query description: Free-text term matched against the log message. schema: type: string - name: region in: query description: >- Restricts results to the given regions. Accepts comma-separated values (`region=de,ny`) or repeated parameters (`region=de®ion=ny`). style: form schema: type: array items: type: string - name: sort in: query description: >- Direction applied to every ordering key. Defaults to descending, so the newest entries come first. schema: $ref: '#/components/schemas/Sorting' - name: orderBy in: query description: >- Ordered list of labels to sort by. Accepts comma-separated values (`orderBy=container,region`) or repeated parameters (`orderBy=container&orderBy=region`). Results are always ordered by timestamp last, so the sequence acts as a hierarchy above the timestamp ordering. The `sort` direction applies to every key. style: form schema: type: array items: $ref: '#/components/schemas/LogLabel' - name: limit in: query description: Maximum number of entries to return. schema: maximum: 1000 minimum: 1 type: integer format: int32 default: 100 - name: offset in: query description: Number of entries to skip before returning results. schema: maximum: 2147483647 minimum: 0 type: integer format: int32 default: 0 responses: '200': description: Logs retrieved successfully. content: application/json: schema: $ref: '#/components/schemas/SearchApplicationLogsResponse' '400': description: Invalid filters or time range. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' '401': description: User is unauthorized. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' '404': description: Application is not found by this ID. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' '429': description: Too many requests. content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '500': description: Unexpected server error. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' components: schemas: Sorting: enum: - ascending - descending type: string LogLabel: enum: - pod - container - source - region - regionZone type: string SearchApplicationLogsResponse: type: object properties: items: type: array items: $ref: '#/components/schemas/ApplicationLogRecord' meta: $ref: '#/components/schemas/SearchApplicationLogsMeta' cursor: type: string nullable: true additionalProperties: false description: >- Page of application log records. Pagination is offset-based via the request's `offset` and `limit` query parameters; the `cursor` field is unused. ErrorDetails: type: object properties: title: type: string description: A short, human-readable summary of the problem type. readOnly: true status: type: integer description: The HTTP status code. format: int32 readOnly: true detail: type: string description: >- A human-readable explanation specific to this occurrence of the problem. nullable: true readOnly: true instance: type: string description: >- A URI reference that identifies the specific occurrence of the problem. nullable: true readOnly: true errors: type: array items: $ref: '#/components/schemas/ValidationError' description: Additional validation errors for field-specific issues. nullable: true readOnly: true id: type: string description: >- The application ID, returned as an RFC 7807 extension field when relevant (e.g. partial save errors). Matches the "id" field from successful create response for consistency. nullable: true readOnly: true additionalProperties: false description: RFC 7807 Problem Details response model. ProblemDetails: type: object properties: type: type: string nullable: true title: type: string nullable: true status: type: integer format: int32 nullable: true detail: type: string nullable: true instance: type: string nullable: true additionalProperties: {} ApplicationLogRecord: type: object properties: timestamp: type: string format: date-time logId: type: string message: {} labels: type: object additionalProperties: type: string additionalProperties: false SearchApplicationLogsMeta: type: object properties: currentItems: type: integer description: Number of items returned on this page. format: int32 nextOffset: type: integer description: >- The `offset` value to request the next page, or `null` if there is no next page. format: int32 nullable: true additionalProperties: false ValidationError: required: - message type: object properties: field: type: string nullable: true message: type: string additionalProperties: false securitySchemes: AccessKey: type: apiKey description: Please enter a valid personal API key. name: AccessKey in: header ```` This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.