skypilot_serve_logs
Fetch a snapshot of logs from a SkyPilot service component (controller, load balancer, or replica) to inspect issues; specify tail lines for the last N entries.
Instructions
Get a snapshot of logs from a service component. Target can be 'controller', 'load_balancer', or 'replica'. When target is 'replica', optionally specify replica_id. Returns the last N lines (default 100, set to 0 for all). Does not stream/follow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| target | No | controller | |
| replica_id | No | ||
| service_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |