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 2 years 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

This looks ready to me. Is this intended to still be in draft?

dboulware avatar Apr 11 '24 16:04 dboulware

I haven't had a chance to test this yet @dboulware

aromanielloNTIA avatar Apr 14 '24 23:04 aromanielloNTIA

Updated in https://github.com/NTIA/scos-sensor/pull/292

dboulware avatar Jun 11 '24 21:06 dboulware