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

file rotation for 'file_output' #266

Closed
krishnaghatti opened this issue Aug 13, 2017 · 2 comments · Fixed by #347
Closed

file rotation for 'file_output' #266

krishnaghatti opened this issue Aug 13, 2017 · 2 comments · Fixed by #347

Comments

@krishnaghatti
Copy link

Hello all,

I am using file_output with the below settings. Is there any way we can set rotation of the file after it reaches a specific size or time (rotate once every day)

file_output:
enabled: true
filename: /var/log/falco/events.txt

@finid
Copy link

finid commented Sep 18, 2017

On Ubuntu and maybe other distros too, you can use the installed Logrotate program. See /etc/logrotate.d and /etc/logrotate.conf.

By the way, my config is just like yours.

@mstemm mstemm mentioned this issue Apr 5, 2018
@mstemm
Copy link
Contributor

mstemm commented Apr 5, 2018

#347 will have an example logrotate config. Also, it modifies falco to close/reopen file and program outputs on SIGUSR1. This is relevant when using keep_alive: true, as the output file/program is kept open across outputs.

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 a pull request may close this issue.

3 participants