2.12 Ensure centralized and remote logging is configured

Information

Docker now supports various log drivers. A preferable way to store logs is the one that supports centralized and remote logging.
Rationale:
Centralized and remote logging ensures that all important log records are safe despite catastrophic events. Docker now supports various such logging drivers. Use the one that suits your environment the best.

Solution

Step 1: Setup the desired log driver by following its documentation.
Step 2: Start the docker daemon with that logging driver.
For example,
dockerd --log-driver=syslog --log-opt syslog-address=tcp://192.xxx.xxx.xxx
Impact:
None.
Default Value:
By default, container logs are maintained as json files

See Also

https://workbench.cisecurity.org/files/1726

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-9(2), CSCv6|6.6

Plugin: Unix

Control ID: f80207affe32498876e747b7a94ad326df9e9a9fc0d6243ae824237c422924aa