scos-sensor icon indicating copy to clipboard operation
scos-sensor copied to clipboard

Enable log rotation for all containers using Compose file

Open aromanielloNTIA opened this issue 10 months ago • 2 comments

Chooses the recommended local logging driver to enable automatic log rotation for all containers. Adding this configuration in the Compose file means that we don't need provisioning solutions to enforce a setting within a sensor's installation of Docker.

This changes the logging driver from json-file to local, so the log format is changed. The local driver defaults to preserving 100 MB of logs per container (5x20MB files). In this configuration, SCOS Sensor logs are capped at 400 MB. Modification of the Compose file can alter these settings per-sensor.

(Finally!) resolves #50.

aromanielloNTIA avatar Mar 28 '24 18:03 aromanielloNTIA