Filippo Giunchedi has uploaded a new change for review.
https://gerrit.wikimedia.org/r/170002
Change subject: syslog-ng: keep 30 days worth of logs
......................................................................
syslog-ng: keep 30 days worth of logs
This originated from a request to keep more swift logs in related RT.
Rationale: a day worth of compressed logs is ~1GB and swift is the biggest part
of that. Judging from the puppet recipe the syslog server used to be on NFS
which is no longer the case and the current syslog server has ~300GB to spare.
So 30 days seems like an easy win while still respect the data retention policy
of 90 days.
also style/convetion fix invoke-rc.d vs service
RT: 8781
Change-Id: If0eb2b46e3e709f6f6ebae435177960c745648e2
---
M templates/syslog-ng/remote-logs.erb
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/02/170002/1
diff --git a/templates/syslog-ng/remote-logs.erb
b/templates/syslog-ng/remote-logs.erb
index 914d766..8fbd498 100644
--- a/templates/syslog-ng/remote-logs.erb
+++ b/templates/syslog-ng/remote-logs.erb
@@ -4,7 +4,7 @@
#####################################################################
<%= @basepath %>/* {
- rotate 7
+ rotate 30
dateext
olddir <%= @archivepath %>
daily
@@ -12,7 +12,7 @@
missingok
notifempty
postrotate
- /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
+ /usr/sbin/service syslog-ng reload >/dev/null
endscript
}
--
To view, visit https://gerrit.wikimedia.org/r/170002
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If0eb2b46e3e709f6f6ebae435177960c745648e2
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits