OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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.4.2

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    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.4.2
    iconOceanBase Cloud Platform
    V 4.4.2
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    • V 4.4.2
    • 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 logs

    Last Updated:2026-06-10 02:35:40  Updated
    Share
    What is on this page
    Prerequisites
    Procedure
    Log types

    folded

    Share

    The log query feature allows you to view the logs of OBServer nodes, the arbitration service, OBProxies, binlog servers, binlog instances, hosts, and OceanBase Cloud Platform (OCP) Agent by object scope, log type, log level, and time range. In addition, OCP allows you to specify keywords to perform general matching or regular expression matching for logs.

    You can view error logs of selected objects and components with status exceptions, and perform log analysis.

    Prerequisites

    Make sure that you have the following permissions:

    • Resource Permissions: Cluster Read-only, Tenant Read-only, OBProxy Read-only, Arbitration Service Read-only, Binlog Service Read-only, or Host Read-only permission
    • Menu Permissions: Permission on the All menu of the Log Service

    Procedure

    1. Log in to the OCP console.

    2. In the left-side navigation pane, choose System Management > Log service.

      The Log service page automatically appears. Alternatively, you can go to this page from the following entries:

      Note

      If you go to the Log service page from the following entries, the system automatically sets the Object Scope and Log Type parameters based on the entry.

      • In the upper-right corner of the Overview page of a cluster, click ... and select Download Logs.

      • In the OBServer node list on the Overview page of a cluster, click ... in the Actions column of the target OBServer node and select Download Logs.

      • In the left-side navigation pane, click Hosts. In the host list, select multiple IP addresses. Click Batch Download Logs in the lower-right corner of the page.

      • In the upper-right corner of the Overview page of an OBProxy cluster, click ... and select Download All Logs.

      • In the OBProxy list on the Overview page of an OBProxy cluster, click Download Logs in the Actions column of the target OBProxy.

    3. On the Log Search page, set the search criteria described in the following table.

      1216

      Criteria
      Description
      Object Scope The scope for log query. You must specify this parameter.
      • Select an OceanBase cluster, an arbitration service, an OBProxy cluster, a binlog server, a binlog instance, or a host from the left-side drop-down list to specify the log query object.
      • Select one or more servers of the specified object from the right-side drop-down list. If you query logs by host, the selected servers are displayed and grouped by cluster.
      Log Type The log type and files. You must specify this parameter. For more information, see the Log types section.
      • Select OceanBase Database Logs, Arbitration Service Logs, OBProxy Logs, Binlog Server Logs, Binlog Instance Logs, Host Logs, or OCP Agent Logs from the left-side drop-down list to specify the log type.
      • Select one or more log files of the specified type from the right-side drop-down list.
      Log Level The log level. Valid values: ERROR, WARN, INFO, WDIAG, EDIAG, TRACE, and DEBUG. You can select multiple levels.
      Time Range The default time range is last 1 hour. You can select a time range of last 5, 10, 15, or 30 minutes, last 1, 3, 6, 12, or 24 hours, or last 7 days from the left-side drop-down list, or specify a custom time range in the right-side box.
      Keywords The keywords that the logs to query contain. Regular expression matching and general matching of multiple keywords are supported.
      Excluding The keywords that the logs to query cannot contain. Multiple keywords can be excluded.
    4. Click Query.

      The query results are displayed in the lower part of the page.

      18

      • In section ①, you can switch between severs to view their logs.

      • In section ②, you can switch between log files.

    5. In section ③, click Download Logs.

      You can download all logs meeting the specified criteria on the server.

    Log types

    The following table describes the log types.

    Log type
    Description
    OceanBase Database logs All logs in the /log/ directory of the OceanBase cluster installation path, subdivided into four types: observer, rootservice, election, and alert.
    The log clearing strategy is determined by the value you specified for the ocp.agent.ob-cleaner.config parameter:
    • The logs are not cleared when the log disk usage is less than the threshold, which is 80% by default.
    • If the log disk usage exceeds the threshold, the system first clears logs that were generated before the specified time.
    • If the log disk usage is less than the threshold after the logs generated before the specified time are cleared, the clearing stops.
    • Otherwise, logs are deleted based on the retention percentage.
    Arbitration service logs All logs in the /log/ directory of the arbitration service installation path, subdivided into three types: arbitration_observer, arbitration_rootservice, and arbitration_election.
    OBProxy logs All logs in the /home/admin/logs/obproxy/log/ directory, subdivided into eight types: obproxy, obproxy_digest, obproxy_stat, obproxy_slow, obproxy_limit, obproxy_diagnosis, obproxy_xflush, and obproxy_error.
    Binlog server logs All logs in the /log/ directory of the binlog cluster installation path, subdivided into four types: binlog_server_logproxy, binlog_server_logproxy, and binlog_server_out.
    Binlog instance logs All logs in the /run/instance name/log/ directory of the binlog cluster installation path, subdivided into four types: binlog_service_instance, binlog_service_init, binlog_service_libobcdc, and binlog_service_libobcdc_stderr.
    Host logs All message-date files in the /var/log directory.
    OCP Agent logs All logs in the /home/admin/ocp_agent/log/ directory, subdivided into four types: mgragent, monagent, agentctl, and agentd.

    Previous topic

    Enable the OCP multi-cluster mode
    Last

    Next topic

    Download logs
    Next
    What is on this page
    Prerequisites
    Procedure
    Log types