Filippo Giunchedi has submitted this change and it was merged.

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(-)

Approvals:
  Filippo Giunchedi: Verified; Looks good to me, approved
  Alexandros Kosiaris: Looks good to me, approved



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: merged
Gerrit-Change-Id: If0eb2b46e3e709f6f6ebae435177960c745648e2
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to