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 Database

SQL - V4.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive 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 Database
    3. SQL
    4. V4.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    syslog_disk_size

    Last Updated:2026-04-09 02:53:56  Updated
    share
    What is on this page
    Description
    Privilege requirements
    Attributes
    Considerations
    Examples
    References

    folded

    share

    Note

    • For V4.3.x, this parameter is available starting with V4.3.1.
    • For V4.2.x, this parameter is available starting with V4.2.3.

    Description

    syslog_disk_size specifies the maximum disk space for system logs. When the total size of system logs approaches this limit, the oldest log files, including compressed ones, will be deleted.

    Privilege requirements

    • Query the parameter

      The sys tenant and all user tenants can query this parameter by using the SHOW PARAMETERS statement or the GV$OB_PARAMETERS view.

    • Modify the parameter

      Only the sys tenant can modify this parameter. User tenants cannot modify this parameter.

    Attributes

    Attribute
    Description
    Parameter type CAP
    Default value 0M, indicating that disk space recycling is disabled.
    Value range [0, +∞)
    Modifiable Yes. You can use the ALTER SYSTEM SET statement to modify the parameter.
    Effective upon OBServer node restart No. The setting takes effect immediately.

    Considerations

    • The system log files stored by this parameter include all compressed and uncompressed log files in the {install_path}/log directory.

    • The syslog_disk_size parameter is based on the du -sh (disk usage) statistics method, which calculates the total disk block size occupied by all files in the log directory. This is different from the df -h (disk free) statistics method, which displays the usage of the entire disk partition (including metadata and cache), and also counts files that have been deleted but are still being used by processes.

    • The relationship between the syslog_disk_size parameter and the max_syslog_file_count parameter:

      1. max_syslog_file_count=0 and syslog_disk_size=0: No log recycling occurs until the disk is full.
      2. max_syslog_file_count=0 and syslog_disk_size>0: When the total log size approaches syslog_disk_size, the oldest log files are deleted to recycle space.
      3. max_syslog_file_count>0 and syslog_disk_size=0: When the number of a certain type of log file exceeds max_syslog_file_count, the oldest log files are deleted to recycle space.
      4. max_syslog_file_count>0 and syslog_disk_size>0: When the number of a certain type of log file exceeds max_syslog_file_count or when the total log size approaches syslog_disk_size, the oldest compressed files are deleted.

    Examples

    Set the maximum disk space for system logs to 50 GB.

    obclient> ALTER SYSTEM SET syslog_disk_size='50GB';
    

    References

    • Logs
    • Log control methods

    Previous topic

    syslog_compress_func
    Last

    Next topic

    syslog_file_uncompressed_count
    Next
    What is on this page
    Description
    Privilege requirements
    Attributes
    Considerations
    Examples
    References