---
title: "读取日志文件内容"
method: GET
path: "/admin/logs/read"
tags: ["System"]
---

# 读取日志文件内容

`GET /admin/logs/read`

读取指定日志文件的内容，支持指定返回行数

## Query parameters

- `filename` string, required
- `lines` integer

## Response `200`

success

- object
  - `code` integer
  - `data` string[]
  - `message` string
  - `msg` string

## Changes

- **2026-05-27** `5d38e17cc07e` — 1 info
  - endpoint added
- **2025-10-22** `dcdf027169a3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api/changes/admin/logs/read/get.md)

---

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