TMAegis
cockroachdb 관련 규칙 더 보기

TMA-COCKROACHDB-3.2

Ensure Log Rotation and Retention Settings Are Configured

보통레벨 1수동 검토cockroachdb

설명

CockroachDB log rotation and retention must be configured to prevent uncontrolled growth and to preserve an appropriate history window. CockroachDB supports per-group rotation parameters that control both individual file size and total group retention. Each log file group can define: - max-file-size - maximum size of an individual log file before a new file is created.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

Run cockroach debug check-log-config (or grep -A10 file-groups: /etc/cockroach/logging.yaml) and confirm each production file group has suitable max-file-size and max-group-size (defaults 10MiB / 100MiB). Check that the on-disk log directory holds enough history to meet the retention policy and that logs are shipped off-node.

조치 방법

조치 방식: 가이드 또는 인프라 패치

1. Use defaults or define explicit rotation settings: If you do not configure a custom logging YAML, CockroachDB applies defaults of max- file-size: 10MiB and max-group-size: 100MiB to most file groups, which are acceptable for many small-to-medium deployments.

속성

운영 체제
모두
태그
cockroachdblogging
참고 자료
CIS CockroachDB v25.x Benchmark v1.0.0 - 3.2 Ensure Log Rotation and Retention Settings Are Configured