---
title: "Query System Logs"
method: GET
path: "/v1/datalake/queryActivityLog"
tags: ["Logs"]
---

# Query System Logs

`GET /v1/datalake/queryActivityLog`

This endpoint retrieves System Logs for user activity in the Data Lake. You can query logs based on various parameters to track user actions or file operations and changes.

## Query parameters

- `queryId` string
- `max` integer
- `next` string
- `take` integer
- `skip` integer
- `actor` string
- `targetType` string
- `targetName` string
- `action` string
- `actions` string
- `from` string, date-time
- `to` string, date-time
- `ids` string[]
- `id` string
- `changeReason` string
- `targetIds` string
- `format` string
- `sortDirection` string

## Headers

- `ts-auth-token` string, required
- `x-org-slug` string, required

## Response `200`

Successfully retrieved activity logs

- object
  - `queryId` string
  - `logs` object[]
    - `id` string
    - `type` string
    - `category` string
    - `created_at` string, date-time
    - `tenant_id` string
    - `org_slug` string
    - `actor` object
      - `id` string
      - `type` string
      - `name` string
      - `email` string
    - `action` string
    - `target` object
      - `id` string
      - `type` string
      - `name` string
    - `source` object
      - `id` string
      - `type` string
      - `tracking` object
        - `ipaddress` string
        - `useragent` string
        - `token` string
        - `other` string
    - `tags` object
    - `before` object
    - `after` object
  - `hasMore` boolean

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/tetrascience/apis/tetra-data-lake.md) · [All operations](https://skmtc.net/tetrascience/apis/tetra-data-lake/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tetrascience/tetra-data-lake/revisions/0205e2bace53/schema)
