惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
D
Docker
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
月光博客
月光博客
S
SegmentFault 最新的问题
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Use Ceph RGW for Log Storage and Archival
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Why Ceph RGW for Log Storage?

Log storage requirements grow continuously. Ceph RGW provides:

  • Infinite scalability within cluster capacity
  • S3-compatible API for existing tooling
  • Tiered storage with lifecycle policies
  • Compression support (zstd) to reduce log storage costs by 5-10x
  • On-premises compliance for regulated industries

Step 1: Set Up a Log Bucket

aws s3 mb s3://application-logs --endpoint-url https://rgw.example.com

# Enable versioning (optional but useful for audit trails)
aws s3api put-bucket-versioning \
  --bucket application-logs \
  --versioning-configuration Status=Enabled \
  --endpoint-url https://rgw.example.com

Step 2: Enable Compression on the Log Pool

# Enable zstd compression on the RGW data pool
ceph osd pool set default.rgw.buckets.data compression_mode force
ceph osd pool set default.rgw.buckets.data compression_algorithm zstd

Step 3: Configure Fluentd to Ship Logs to Ceph RGW

<match app.**>
  @type s3
  aws_key_id your-access-key
  aws_sec_key your-secret-key
  s3_bucket application-logs
  s3_endpoint https://rgw.example.com
  s3_region us-east-1
  force_path_style true
  path logs/%Y/%m/%d/
  s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
  time_slice_format %Y%m%d-%H
  store_as gzip
  <buffer time>
    @type file
    path /var/log/fluent/s3
    timekey 1h
    timekey_wait 10m
    chunk_limit_size 256m
  </buffer>
</match>

Step 4: Configure Vector to Ship Logs

[sources.app_logs]
type = "file"
include = ["/var/log/app/*.log"]

[transforms.parse_logs]
type = "remap"
inputs = ["app_logs"]
source = '''
  .timestamp = now()
  .host = get_hostname!()
'''

[sinks.ceph_s3]
type = "aws_s3"
inputs = ["parse_logs"]
bucket = "application-logs"
endpoint = "https://rgw.example.com"
region = "us-east-1"
key_prefix = "logs/{{ host }}/%Y/%m/%d/"
encoding.codec = "ndjson"
compression = "gzip"
auth.access_key_id = "your-access-key"
auth.secret_access_key = "your-secret-key"

Step 5: Configure Log Lifecycle Policies

Retain logs for 90 days, then delete:

{
  "Rules": [{
    "ID": "log-retention-90-days",
    "Filter": { "Prefix": "logs/" },
    "Status": "Enabled",
    "Expiration": {
      "Days": 90
    }
  }]
}
aws s3api put-bucket-lifecycle-configuration \
  --bucket application-logs \
  --lifecycle-configuration file://log-lifecycle.json \
  --endpoint-url https://rgw.example.com

Querying Logs with AWS CLI

List logs for a specific day:

aws s3 ls s3://application-logs/logs/2026/03/31/ \
  --endpoint-url https://rgw.example.com

Download and decompress:

aws s3 cp s3://application-logs/logs/2026/03/31/myapp.log.gz /tmp/ \
  --endpoint-url https://rgw.example.com
gunzip /tmp/myapp.log.gz
grep "ERROR" /tmp/myapp.log

Summary

Ceph RGW is an excellent log storage backend that combines S3-compatible APIs with compression (achieving 5-10x storage savings for log data) and flexible lifecycle policies. Configure Fluentd or Vector to batch-ship logs using S3 output plugins with path-style access enabled. Set lifecycle policies to automatically expire logs based on your retention requirements, and enable zstd compression on the RGW data pool to minimize storage costs.