Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/195673

Change subject: Reduce lifetime of api logs to 20 days.
......................................................................

Reduce lifetime of api logs to 20 days.

Fluorine doesn't have room for 30 until we get bigger drives.

bug:  T88393
Change-Id: Icaefc6b5e411cc01c0f16bed4c164ea29f35a535
---
M files/misc/scripts/mw-log-cleanup
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/73/195673/1

diff --git a/files/misc/scripts/mw-log-cleanup 
b/files/misc/scripts/mw-log-cleanup
index 551aa4a..9a400dd 100755
--- a/files/misc/scripts/mw-log-cleanup
+++ b/files/misc/scripts/mw-log-cleanup
@@ -7,9 +7,9 @@
 # logrotate will miss archived logs which were deleted in the parent directory.
 find /a/mw-log/archive -mtime +180 -delete
 
-# Remove API logs after 30 days since they are particularly bulky and will fill
+# Remove API logs after 20 days since they are particularly bulky and will fill
 # fluorine's disk if left for 180 days
-find /a/mw-log/archive -name api.log-\* -mtime +30 -delete
+find /a/mw-log/archive -name api.log-\* -mtime +20 -delete
 
 # Remove XFF logs before the CheckUser expiry time
 find /a/mw-log/archive -name xff.log-\* -mtime +88 -delete

-- 
To view, visit https://gerrit.wikimedia.org/r/195673
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icaefc6b5e411cc01c0f16bed4c164ea29f35a535
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>

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

Reply via email to