livy_get_session_log
Retrieve Spark driver logs to debug session startup issues, troubleshoot failed statements, and investigate Spark driver problems. Supports incremental reads for paging through logs.
Instructions
Fetch incremental Livy driver logs for a session.
Retrieves Spark driver logs for debugging session startup issues or statement problems. Supports incremental reads with start/size parameters for paging through logs.
Use Cases:
Debugging session startup issues
Troubleshooting failed statements
Investigating Spark driver problems
Monitoring session health
Note: Returns driver-side logs only, not executor logs.
Parameters: workspace_id: Fabric workspace ID. lakehouse_id: Fabric lakehouse ID. session_id: Livy session ID. start: Starting log line index (default: 0). size: Number of log lines to retrieve (default: 500).
Returns: Dictionary with log content and metadata: {"status": "success", "log_content": "", "log_size_bytes": , "offset": , "size": }.
Example: ```python # Get first 100 log lines result = livy_get_session_log( workspace_id="12345678-1234-1234-1234-123456789abc", lakehouse_id="87654321-4321-4321-4321-210987654321", session_id="0", start=0, size=100 )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| lakehouse_id | Yes | ||
| session_id | Yes | ||
| start | No | ||
| size | No |