mirror of https://github.com/zulip/zulip.git
puppet: Configure smokescreen for 14 days of logs, via logrotate.
supervisord's log rotation is only "every x bytes" which is not a good enough policy for tracking auditing logs. The default is also 10 logs of 50MB, which is very much not enough for active instances. Switch to tracking 14 days of daily logs.
This commit is contained in:
parent
695295421a
commit
149bea8309
|
@ -0,0 +1,11 @@
|
|||
/var/log/zulip/smokescreen.log
|
||||
{
|
||||
missingok
|
||||
rotate 14
|
||||
daily
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
create 644 zulip zulip
|
||||
}
|
|
@ -49,4 +49,12 @@ class zulip::smokescreen {
|
|||
content => template('zulip/supervisor/smokescreen.conf.erb'),
|
||||
notify => Service[supervisor],
|
||||
}
|
||||
|
||||
file { '/etc/logrotate.d/smokescreen':
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
source => 'puppet:///modules/zulip/logrotate/smokescreen',
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,3 +6,5 @@ autorestart=true
|
|||
user=zulip
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/log/zulip/smokescreen.log
|
||||
stdout_logfile_maxbytes=0
|
||||
stdout_logfile_backups=0
|
||||
|
|
Loading…
Reference in New Issue