---
title: "Get Log Groups"
method: GET
path: "/v0/logs/groups"
tags: ["Logs"]
---

# Get Log Groups

`GET /v0/logs/groups`

Returns a dict with the different versions as keys and the values of the remaining
items within a given project based on its key.
The logs can be filtered using filter_expr, from_ids, and exclude_ids parameters
before grouping.

## Query parameters

- `project_name` string, required — Name of the project to get entries from.
- `key` string, required — Name of the log entry to get distinct values from.
- `context` string, nullable — Static context to filter logs by.
- `filter_expr` string, nullable — Boolean string to filter entries before grouping.
- `from_ids` string, nullable — The log ids which are permitted to be included in the search. Each log id listed does not need to be returned, but no logs which are not included in this list can be returned. This argument *cannot* be set if `exclude_ids` is set.
- `exclude_ids` string, nullable — The log ids which cannot be returned from the search. None of the listed ids will be returned, even if the logs are valid as per the filtering expression etc. This argument *cannot* be set if `from_ids` is set.

## Response `200`

Successful Response

- object

## Other responses

- `404` — Project Not Found
- `422` — Validation Error

---

[API](https://skmtc.net/unify/apis/unifyai-http-api-reference.md) · [All operations](https://skmtc.net/unify/apis/unifyai-http-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unify/unifyai-http-api-reference/revisions/900377f918b6/schema)
