Skip to content

Commit

Permalink
Add logrotate configuration
Browse files Browse the repository at this point in the history
Because rusty.err was 5GB...
  • Loading branch information
legoktm committed Jun 21, 2024
1 parent 0fc829f commit eb51582
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@
schedule: "0 */2 * * * "
cpu: "3"
emails: onfailure
filelog-stdout: logs/rusty-stdout.log
filelog-stderr: logs/rusty-stderr.log
- name: logrotate
command: "logrotate -v $TOOL_DATA_DIR/src/database-reports/logrotate.conf --state $TOOL_DATA_DIR/logrotate.state"
image: mariadb
schedule: "@daily"
emails: onfailure
6 changes: 6 additions & 0 deletions logrotate.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"./logs/*.log" {
daily
rotate 30
copytruncate
dateext
}

0 comments on commit eb51582

Please sign in to comment.