---
title: "Get application logs"
method: GET
path: "/applications/{id}/logs"
tags: ["logs"]
---

# Get application logs

`GET /applications/{id}/logs`

Returns an endpoint for the requested application logs.

## Path parameters

- `id` string, required

## Query parameters

- `type` 'access' | 'pageviews' | 'csp-reports' | 'cdn'
- `from` string
- `to` string
- `format` string
- `select` string
- `filter` string
- `start` integer
- `order` string
- `groupby` string
- `groupfilters` string
- `grouplimit` integer
- `groupselect` string
- `grouporder` string

## Response `200`

A CSV or a JSON document containing the application access logs. The fields included in the response depend on the parameters specified in the request.

- ApplicationLog
  - `from` string, required — An iso8601 formatted timestamp
  - `group` object, required
    - `fields` string[], required — A list of attribute names specified by the 'groupselect' parameter in the request.
    - `result` object[], required — A list with each item containing a list of attribute values for the fields included the 'fields' attribute.
  - `records` object, required
    - `count` number, required — Number of items included in the result.
    - `fields` object, required — A list of attribute names specified by the 'select' parameter in the request.
    - `next` number — The starting record number representing the first item not already included in the 'result'. This is the value that must be specified as the 'start' value to fetch consecutive result records. This value along with the 'start' value enables server side pagination amongst the result records.
    - `result` object[], required — A list with each item containing a list of attribute values for the fields included the 'fields' attribute.
    - `start` number, required — The starting record number representing the first item included in the 'result'. This will mirror the 'start' value specified in the request. This value alogn with the 'next' value enables server side pagination amongst the result records. The first record starts at 1.
  - `to` string, required — An iso8601 formatted timestamp

---

[API](https://skmtc.dev/webscale/apis/webscale-apis.md) · [All operations](https://skmtc.dev/webscale/apis/webscale-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webscale/webscale-apis/revisions/c98d872b50cb/schema)
