All Products
Search
Document Center

Object Storage Service:How do I query the access and operation records of objects?

Last Updated:Mar 20, 2026

OSS provides two ways to track object access and operations: real-time log query and logging. Both capture details about each request, including the requester's IP address and the request type.

Compare methods

Real-time log queryLogging
How it worksIntegrates OSS with Log Service to query access logsGenerates access log files and writes them to a bucket
Log deliveryContinuously available for queryingHourly
Use whenYou need to search logs, run statistics, audit access, track exception events, or troubleshoot issuesYou need periodic log files stored in a bucket for offline processing

Real-time log query

Real-time log query integrates OSS with Log Service. Use it to query and collect statistics for OSS access logs, audit access, track exception events, and troubleshoot issues.

For setup and usage details, see Real-time log query.

Logging

The logging feature generates access log files on an hourly basis, following a fixed naming convention, and writes them to a bucket you specify. Each log file records details about requests made to your OSS resources, including the requester's IP address and the request type.

For setup and usage details, see Logging.