Open1

otel-collector awss3exporter をさくらのオブジェクトストレージと使う

fujiwarafujiwara

receiver はなんでもよいがここでは fluentforward としておく。

awss3 exporter 設定のポイント

設定例は以下の通り。

receivers:
  fluentforward:
    listen_address: ":24224"

processors:
  batch:
    timeout: 1m  # 都度送らないようにバッファリング

exporters:
  awss3:
    s3uploader:
      region: jp-north-1
      s3_bucket: example-bucket           # ここは自分のbucket名に
      s3_prefix: 'logs'
      s3_partition_format: '%Y/%m/%d/%H'
      endpoint: 'https://s3.isk01.sakurastorage.jp' # 現時点ではisk01のみ
      retry_max_attempts: 5   # リトライ設定は適宜
      retry_max_backoff: 3m
      compression: gzip  # 指定しないと無圧縮

service:
  pipelines:
    logs:
      receivers: [fluentforward]
      processors: [batch]
      exporters: [awss3]