---
title: "Get recent logs of the projects (deprecated)"
method: GET
path: "/projects/{project_name}/logs"
tags: ["project"]
---

# Get recent logs of the projects (deprecated)

`GET /projects/{project_name}/logs`

Get recent logs of the projects, it only query the previous version's audit log

## Path parameters

- `project_name` string, required

## Query parameters

- `q` string
- `sort` string
- `page` integer
- `page_size` integer

## Headers

- `X-Request-Id` string

## Response `200`

Success

- AuditLog[]
  - `id` integer — The ID of the audit log entry.
  - `username` string — Username of the user in this log entry.
  - `resource` string — Name of the repository in this log entry.
  - `resource_type` string — Tag of the repository in this log entry.
  - `operation` string — The operation against the repository in this log entry.
  - `op_time` string, date-time — The time when this operation is triggered.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) · [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goharbor/harbor-api/revisions/62d78801f8df/schema)
