Skip to content

Commit

Permalink
BFD-3756: Fix logrotate configuration (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschey-forpeople authored Nov 21, 2024
1 parent 86e42e1 commit 8393c56
Showing 1 changed file with 16 additions and 9 deletions.
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
}

0 comments on commit 8393c56

Please sign in to comment.