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

Rotate logs #347

merged 3 commits into from Apr 5, 2018


None yet
1 participant

mstemm commented Apr 5, 2018

Add ability to close/reopen outputs on SIGUSR1, and add a logrotate example that relies on it.

This fixes #266

mstemm added some commits Apr 5, 2018

Reopen file/program outputs on SIGUSR1
When signaled with SIGUSR1, close and reopen file and program based
outputs. This is useful when combined with logrotate to rotate logs.
Example logrotate config
Example logrotate config that relies on SIGUSR1 to rotate logs.
Ensure options exist for all outputs
Options may not be provided for some outputs (like stdout), so create an
empty set of options in that case.

@mstemm mstemm merged commit 8389e44 into dev Apr 5, 2018

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed
sign-off-checker The commit doesn't require sysdig sign-off CLA because it belongs to mstemm part of draios/falco collaborators

@mstemm mstemm deleted the rotate-logs branch Apr 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment