---
title: "Get recent logs of projects which the user is a member with project admin role, or return all audit logs for system admin user (deprecated)"
method: GET
path: "/audit-logs"
tags: ["auditlog"]
---

# Get recent logs of projects which the user is a member with project admin role, or return all audit logs for system admin user (deprecated)

`GET /audit-logs`

This endpoint let the user see the recent operation logs of projects which the user is a member with project admin role,, or return all audit logs for system admin user, it only query the audit log in previous version.

## 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)
