Skip to content

Commit e455d37

Browse files
huth-stacksclaude
andcommitted
chore: add logrotate configuration for stacks-node
No log rotation was configured by default, allowing log files to grow indefinitely. With debug logging producing ~500GB/hour, this can fill disks rapidly. Adds a logrotate config that: - Rotates daily and on 500MB size threshold - Keeps 7 days of compressed history - Uses copytruncate to avoid requiring a signal to the node Install: cp contrib/init/stacks-logrotate /etc/logrotate.d/stacks-node Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7712133 commit e455d37

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

contrib/init/stacks-logrotate

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Logrotate configuration for stacks-node
2+
# Install: cp contrib/init/stacks-logrotate /etc/logrotate.d/stacks-node
3+
4+
/var/log/stacks-node/*.log {
5+
daily
6+
rotate 7
7+
compress
8+
delaycompress
9+
missingok
10+
notifempty
11+
copytruncate
12+
maxsize 500M
13+
}

0 commit comments

Comments
 (0)