From 661c0e643265068270fd3da255cfb28aa5ea6516 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 10 Jul 2017 13:22:29 +0300 Subject: [PATCH] Add superuser configuration for action log rotation --- .../directives/config/config-setup-tool.html | 41 +++++++++++++++++++ static/js/core-config-setup.js | 4 ++ 2 files changed, 45 insertions(+) diff --git a/static/directives/config/config-setup-tool.html b/static/directives/config/config-setup-tool.html index 3e78cc92e..f40b2b40f 100644 --- a/static/directives/config/config-setup-tool.html +++ b/static/directives/config/config-setup-tool.html @@ -351,6 +351,47 @@ + +
+
+ Action Log Rotation and Archiving +
+
+
+

+ All actions performed in are automatically logged. These logs are stored in a database table, which can become quite large. + Enabling log rotation and archiving will move all logs older than 30 days into storage. +

+
+
+ Enable Action Log Rotation +
+ + + + + + + + + + +
Storage location: + +
+ The storage location in which to place archived action logs. Logs will only be archived to this single location. +
+
Storage path: + +
+ The path under the configured storage engine in which to place the archived logs in JSON form. +
+
+
+
diff --git a/static/js/core-config-setup.js b/static/js/core-config-setup.js index 763330ff6..d99ef4e7b 100644 --- a/static/js/core-config-setup.js +++ b/static/js/core-config-setup.js @@ -80,6 +80,10 @@ angular.module("core-config-setup", ['angularFileUpload']) {'id': 'oidc-login', 'title': 'OIDC Login(s)', 'condition': function(config) { return $scope.getOIDCProviders(config).length > 0; }}, + + {'id': 'actionlogachiving', 'title': 'Action Log Rotation', 'condition': function(config) { + return config.FEATURE_ACTION_LOG_ROTATION; + }}, ]; $scope.STORAGE_CONFIG_FIELDS = {