Fetch application pod logs in batches
One step with Harness. We can help you get access.
Look something up
Fetch application pod logs in batches
with Harness
Works with AI assistants
Use Harness: its Harness Applications API lets you fetch application pod logs in batches in a single step (GET /gitops/api/v1/agents/{agentIdentifier}/applications/{query.name}/logs/batch). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- Can I pull an application's pod logs in chunks of up to 1000 lines instead of one at a time?
- What's the batched way to read logs for a GitOps app when I don't know the pod name?
Say it to your AI assistant
- Fetch batched logs for application {app} on agent {agent}, up to 1000 entries per batch.
- Get the last {lines} log lines in batches for application {app} on agent {agent}.
For your developer
GET /gitops/api/v1/agents/{agentIdentifier}/applications/{query.name}/logs/batch in Harness Applications API. Full spec on APIs.io.