TMA-DOCKER-2.14
Ensure centralized and remote logging is configured
中レベル 2自動docker
説明
Centralized logging keeps container logs off the host where they can be tampered with. The audit reads the default logging driver from docker info and fails for the local-only drivers json-file, local and none.
チェック方法
監査方法: シェルコマンド
shell
d=$(docker info --format '{{.LoggingDriver}}') || exit 1; case "$d" in json-file|local|none|'') echo "local:$d";; *) echo compliant;; esac- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Set "log-driver" (e.g. syslog, journald forwarded to a collector, fluentd, gelf, splunk) and its "log-opts" in /etc/docker/daemon.json, then restart the Docker daemon.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- dockerdaemonlogging
- 参照
- CIS Docker Benchmark v1.9.0 - 2.14 Ensure centralized and remote logging is configured
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target docker --level 2