---
title: "Bulk log collection"
method: POST
path: "/api/v1/k8s/logs/collect/bulk"
tags: ["K8s Logs"]
---

# Bulk log collection

`POST /api/v1/k8s/logs/collect/bulk`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/collect/bulk`
- Auth: none declared

Collect logs from all pods in specified namespaces

## Request body

- K8sLogsBulkLogCollectionRequest
  - `app_filter` string: Optional filter by app name
  - `cluster_id` string, required
  - `namespaces` string[], required
  - `since_time` string: Only collect logs after this time (RFC3339)
  - `tail_lines` integer: Number of lines to tail per pod (default: 500)

## Response `200`

OK

- object

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
