---
title: "Diagnose pod logs using AI"
method: POST
path: "/insight/aggregator/log/diagnosis/stream"
tags: ["insight"]
---

# Diagnose pod logs using AI

`POST /insight/aggregator/log/diagnosis/stream`

This endpoint analyzes pod logs using AI to identify issues and provide solutions

## Request body

- AggregatorDiagnoseRequest
  - `language` string — Language code for AI response
  - `logs` string[]

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2024-12-20** `f284656f88fa` — 1 info
  - endpoint added
- **2023-12-11** `2a20fa0acab4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kusionstack/apis/karpor/changes/insight/aggregator/log/diagnosis/stream/post.md)

---

[API](https://skmtc.dev/kusionstack/apis/karpor.md) · [All operations](https://skmtc.dev/kusionstack/apis/karpor/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kusionstack/karpor/revisions/d741ac56c269/schema)
