get_task_log
Retrieve detailed information about a task execution, including status, logs, and error messages, to monitor progress or debug failures in SAP Datasphere.
Instructions
Get detailed information about a specific task execution in SAP Datasphere.
Use this tool when:
Checking status of a running task (after run_task_chain)
Investigating why a task failed
Viewing detailed execution logs and messages
Monitoring task chain progress
Debugging data pipeline issues
What you'll get (depends on detail_level):
status (default): Simple status object {"status": "COMPLETED"}
status_only: Just the status string "COMPLETED"
detailed: Full details including messages and child nodes
extended: Extended logs with complete message details
Required parameters:
space_id: The space where the task ran
log_id: The log ID from run_task_chain or get_task_history
Optional parameters:
detail_level: Amount of detail to return
'status' (default): Status object only
'status_only': Status string only
'detailed': Full logs with messages and children
'extended': Extended logs with message details
Status values:
RUNNING: Task is currently executing
COMPLETED: Task finished successfully
FAILED: Task encountered an error
CANCELLED: Task was manually stopped
Example queries:
"Check status of task log 2295172 in SALES_SPACE"
"Get detailed logs for log ID 2295172"
"Show me why task 2326060 failed in FINANCE"
"Get extended execution details for log 2295172"
Detailed response includes:
logId, status, startTime, endTime, runTime
objectId (task chain name)
user who ran the task
children: Array of child task executions
messages: Array of log messages with severity and timestamps
Use cases:
Monitor long-running ETL jobs
Debug failed data pipelines
Audit task execution history
Track data refresh timing
Investigate error messages
Note: Uses API: GET /api/v1/datasphere/tasks/logs/{space_id}/{log_id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The space ID where the task ran (e.g., 'SALES_SPACE', 'FINANCE'). Must be uppercase. | |
| log_id | Yes | The log ID to retrieve details for (obtained from run_task_chain or get_task_history). | |
| detail_level | No | Level of detail to return. Options: 'status' (default), 'status_only', 'detailed', 'extended'. | status |