---
title: "查询容器日志"
method: GET
path: "/namespaces/:namespace/pods/:pod/logs"
tags: ["Logs"]
---

# 查询容器日志

`GET /namespaces/:namespace/pods/:pod/logs`

## Query parameters

- `container_name` string, required
- `previous` string, required

## Response `200`

OK

- K8sclientLog[]
  - `log` string
  - `time` string

---

[API](https://skmtc.net/tencentblueking/apis/bcs-monitor-openapi.md) · [All operations](https://skmtc.net/tencentblueking/apis/bcs-monitor-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/bcs-monitor-openapi/revisions/ba6addc245e8/schema)
