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

BFD-3756: Fix logrotate configuration #2499

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions ops/ansible/roles/bfd-server/templates/bfd-server.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@
size 300M
copytruncate
compress
}

"{{ ref_dir }}/access.log" {
rotate 1
hourly
#size of live logfile at time of creation was 30M w/out log rotation
size 100M
copytruncate
compress
missingok
dateext
#force filenames to be unique - rotation will not run if a duplicate filename exists
dateformat -%Y%m%d-%s
}

"{{ ref_dir }}/gc.log" {
Expand All @@ -23,6 +18,10 @@
size 5M
copytruncate
compress
missingok
dateext
#force filenames to be unique - rotation will not run if a duplicate filename exists
dateformat -%Y%m%d-%s
}

"{{ ref_dir }}/newrelic_agent.log" {
Expand All @@ -32,6 +31,10 @@
size 15k
copytruncate
compress
missingok
dateext
#force filenames to be unique - rotation will not run if a duplicate filename exists
dateformat -%Y%m%d-%s
}

"{{ ref_dir }}/bfd-server-startup.log" {
Expand All @@ -41,4 +44,8 @@
size 1k
copytruncate
compress
missingok
dateext
#force filenames to be unique - rotation will not run if a duplicate filename exists
dateformat -%Y%m%d-%s
}