get_topic_logs
Retrieve messages from a Kafka topic to inspect event data, filter by partition or timestamp, and sort by oldest or newest for troubleshooting and analysis.
Instructions
Get logs (messages) for a topic
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster": "<cluster>",
"topicName": "<topicName>"
},
"name": "get_topic_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | oldest or newest | |
| after | No | Pagination cursor | |
| search | No | ||
| cluster | Yes | Cluster name | |
| perPage | No | ||
| partition | No | ||
| timestamp | No | ISO 8601 timestamp | |
| topicName | Yes | Topic name |