---
title: "Retrieve App Services logs"
method: GET
path: "/groups/{groupId}/apps/{appId}/logs"
tags: ["logs"]
---

# Retrieve App Services logs

`GET /groups/{groupId}/apps/{appId}/logs`

## Query parameters

- `co_id` string
- `errors_only` boolean
- `user_id` string
- `start_date` string
- `end_date` string
- `skip` integer
- `limit` integer
- `type` 'TRIGGER_FAILURE' | 'TRIGGER_ERROR_HANDLER' | 'DB_TRIGGER' | 'AUTH_TRIGGER' | 'SCHEDULED_TRIGGER' | 'FUNCTION' | 'SERVICE_FUNCTION' | 'STREAM_FUNCTION' | 'SERVICE_STREAM_FUNCTION' | 'AUTH' | 'WEBHOOK' | 'ENDPOINT' | 'PUSH' | 'API' | 'API_KEY' | 'GRAPHQL' | 'SYNC_CONNECTION_START' | 'SYNC_CONNECTION_END' | 'SYNC_SESSION_START' | 'SYNC_SESSION_END' | 'SYNC_CLIENT_WRITE' | 'SYNC_ERROR' | 'SYNC_OTHER' | 'SCHEMA_ADDITIVE_CHANGE' | 'SCHEMA_GENERATION' | 'SCHEMA_VALIDATION' | 'LOG_FORWARDER'

## Response `200`

Successfully retrieved.

- object
  - `logs` AppLog[] — At most 100 results per request.
    - union
      - API — unresolved $ref
      - APIKey — unresolved $ref
      - TriggerFailure — unresolved $ref
      - TriggerErrorHandler — unresolved $ref
      - DBEventTrigger — unresolved $ref
      - AuthEventTrigger — unresolved $ref
      - ScheduledEventTrigger — unresolved $ref
      - Function — unresolved $ref
      - ServiceFunction — unresolved $ref
      - StreamFunction — unresolved $ref
      - ServiceStreamFunction — unresolved $ref
      - Auth — unresolved $ref
      - IncomingWebhook — unresolved $ref
      - Endpoint — unresolved $ref
      - Push — unresolved $ref
      - GraphQL — unresolved $ref
      - SyncConnectionStart — unresolved $ref
      - SyncConnectionEnd — unresolved $ref
      - SyncSessionStart — unresolved $ref
      - SyncSessionEnd — unresolved $ref
      - SyncClientWrite — unresolved $ref
      - SyncError — unresolved $ref
      - SyncOther — unresolved $ref
      - SchemaAdditiveChange — unresolved $ref
      - SchemaGeneration — unresolved $ref
      - SchemaValidation — unresolved $ref
      - LogForwarder — unresolved $ref
  - `nextEndDate` string, required — The end date and time of the next page of log entries in ISO 8601 format. App Services paginates the result sets of queries that match more than 100 log entries and includes this field in paginated responses. To get the next page of up to 100 entries, pass this value as the `end_date` parameter in a subsequent request.
  - `nextSkip` integer, required — The offset into the next page of log entries in ISO 8601 format. MongoDB App Services paginates the result sets of queries that match more than 100 log entries and includes this field in paginated responses where the first entry on the next page has the same timestamp as the last entry on this page. To get the next page of up to 100 entries, pass this value, if it is present, as the `skip` parameter in a subsequent request.

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
