TMAegisBêta
Plus de règles pour docker

Docker

TMA-DOCKER-2.14

Ensure centralized and remote logging is configured

MoyenneNiveau 2Automatiséedocker

Description

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.

Méthode de vérification

Méthode d'audit: Commande shell

shell
d=$(docker info --format '{{.LoggingDriver}}') || exit 1; case "$d" in json-file|local|none|'') echo "local:$d";; *) echo compliant;; esac
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
dockerdaemonlogging
Référence
CIS Docker Benchmark v1.9.0 - 2.14 Ensure centralized and remote logging is configured

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target docker --level 2