Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable log rotation for all containers using Compose file #283

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aromanielloNTIA
Copy link
Member

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.

Enables automatic log rotation. Also provide a name in the compose file
@dboulware
Copy link
Contributor

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

@aromanielloNTIA
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sensor log files grow without bound
2 participants