TMAegis
docker 관련 규칙 더 보기

Docker

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

조치 방법

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

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