OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Cloud Platform

V4.3.1

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Cloud Platform
    3. V4.3.1
    iconOceanBase Cloud Platform
    V 4.3.1
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    Query subtask logs

    Last Updated:2026-04-14 07:46:03  Updated
    share
    What is on this page
    Description
    Call description
    Prerequisite
    Request path
    Request parameters
    Response parameters
    Examples
    Sample request
    Sample response

    folded

    share

    Description

    You can call this operation to query subtask execution logs based on the subtask ID. A running subtask must be queried multiple times and the logs are automatically updated each time when the subtask is queried.

    Call description

    Prerequisite

    You have the TASK_VIEWER permissions.

    Request path

    GET /api/v2/tasks/instances/{taskInstanceId}/subtasks/{subtaskInstanceId}/log

    Request parameters

    Parameter Type Required Example value Description
    taskInstanceId Long Yes 1000 The ID of the task instance.
    subtaskInstanceId Long Yes 10001 The ID of the subtask instance.

    Response parameters

    Parameter Type Description
    data Object The requested data.
    ├─ log String The log information. Multiple lines of logs are separated with \n.
    successful Boolean Indicates whether the request was successful.
    timestamp Datetime The timestamp when the server completed the request.
    duration Integer The time taken by the server to process the request, in milliseconds.
    status Integer An HTTP status code.
    traceId String The trace ID of the request. This trace ID is used for troubleshooting.
    server String The address of the application server that responded to the request.

    Examples

    Sample request

    GET /api/v2/tasks/instances/100/subtasks/1000/log

    Sample response

    {
      "data": {
        "log": "############{EXECUTE}{2021-08-25T15:09:32.697+08:00}############\n2021-08-25 15:09:32.716  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.c.m.t.model.SubtaskInstanceEntity  : Run subtask, id=13000335, context=Context(parallelIdx=-1, stringMap={prohibit_rollback=false, is_reinstall_host_agent=true, ocp_agent_install_version=3.1.2-20210812221645, task_instance_id=35000312, task_operation=execute, latest_execution_start_time=2021-08-25T15:09:32.688+08:00, ocp_agent_origin_version=3.1.2-20210812221645, sub_task_instance_id=13000335, host_id=3000002}, listMap={}), executor=xxx.xxx.xxx.xxx\n\n2021-08-25 15:09:32.726  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] a.o.s.t.b.h.PrepareReinstallOcpAgentTask : [PrepareReinstallOcpAgentTask] begin\n\n2021-08-25 15:09:32.755  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.service.compute.host.HostService   : Updated host status: host [3000002:xxx.xxx.xxx.xxx], from status [ONLINE] to [OFFLINE]\n\n2021-08-25 15:09:32.772  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.compute.agent.HostAgentService   : Checking and updating OCP agent status for OCP agent reinstallation: hostId=3000002\n\n2021-08-25 15:09:32.776  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.compute.agent.HostAgentService   : Checking OCP agent status for OCP agent reinstallation: hostId=3000002\n\n2021-08-25 15:09:32.791  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.compute.agent.HostAgentService   : Finding OCP agent: hostId=3000002\n\n2021-08-25 15:09:32.796  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.c.p.HostAgentProcessService      : Getting all OCP agent processes on host 3000002\n\n2021-08-25 15:09:32.911  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.compute.agent.HostAgentService   : Finding OCP agent: hostId=3000002\n\n2021-08-25 15:09:32.916  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.c.p.HostAgentProcessService      : Getting all OCP agent processes on host 3000002\n\n2021-08-25 15:09:32.945  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.compute.agent.HostAgentService   : Updating OCP agent status, hostId=3000002, status=REINSTALLING\n\n2021-08-25 15:09:32.951  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.s.compute.agent.HostAgentService   : Updated agent 5000003 status REINSTALLING \n\n2021-08-25 15:09:33.064  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] a.o.s.t.b.h.PrepareReinstallOcpAgentTask : [PrepareReinstallOcpAgentTask] end\n\n2021-08-25 15:09:33.073  INFO 57200 --- [pool-subtask-executor-thread-32,8ae3dcf2e4374658,d286cf9d6de4] c.a.o.c.m.t.model.SubtaskInstanceEntity  : Set state for subtask: 13000335, current state: RUNNING, new state: SUCCESSFUL\n"
      },
      "duration": 17,
      "server": "a83ad33525",
      "status": 200,
      "successful": true,
      "timestamp": "2021-08-25T15:10:13.351+08:00",
      "traceId": "5443013f6a1c4cfd"
    }
    

    Previous topic

    Roll back a task
    Last

    Next topic

    Retry a subtask
    Next
    What is on this page
    Description
    Call description
    Prerequisite
    Request path
    Request parameters
    Response parameters
    Examples
    Sample request
    Sample response