Add superuser configuration for action log rotation
This commit is contained in:
parent
176c26e3f7
commit
661c0e6432
2 changed files with 45 additions and 0 deletions
|
@ -351,6 +351,47 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Action log archiving -->
|
||||||
|
<div class="co-panel">
|
||||||
|
<div class="co-panel-heading">
|
||||||
|
<i class="fa fa-archive"></i> Action Log Rotation and Archiving
|
||||||
|
</div>
|
||||||
|
<div class="co-panel-body">
|
||||||
|
<div class="description">
|
||||||
|
<p>
|
||||||
|
All actions performed in <span class="registry-name"></span> 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.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="config-bool-field" binding="config.FEATURE_ACTION_LOG_ROTATION">
|
||||||
|
Enable Action Log Rotation
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="config-table" ng-if="config.FEATURE_ACTION_LOG_ROTATION">
|
||||||
|
<tr>
|
||||||
|
<td>Storage location:</td>
|
||||||
|
<td>
|
||||||
|
<select class="form-control" ng-model="config.ACTION_LOG_ARCHIVE_LOCATION">
|
||||||
|
<option ng-repeat="sc in storageConfig" value="{{ sc['location'] }}">{{ sc['location'] }}</option>
|
||||||
|
</select>
|
||||||
|
<div class="help-text">
|
||||||
|
The storage location in which to place archived action logs. Logs will only be archived to this single location.
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Storage path:</td>
|
||||||
|
<td>
|
||||||
|
<span class="config-string-field" binding="config.ACTION_LOG_ARCHIVE_PATH"
|
||||||
|
placeholder="Path under storage to place archived logs"></span>
|
||||||
|
<div class="help-text">
|
||||||
|
The path under the configured storage engine in which to place the archived logs in JSON form.
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Security Scanner -->
|
<!-- Security Scanner -->
|
||||||
<div class="co-panel">
|
<div class="co-panel">
|
||||||
<div class="co-panel-heading">
|
<div class="co-panel-heading">
|
||||||
|
|
|
@ -80,6 +80,10 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
||||||
{'id': 'oidc-login', 'title': 'OIDC Login(s)', 'condition': function(config) {
|
{'id': 'oidc-login', 'title': 'OIDC Login(s)', 'condition': function(config) {
|
||||||
return $scope.getOIDCProviders(config).length > 0;
|
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 = {
|
$scope.STORAGE_CONFIG_FIELDS = {
|
||||||
|
|
Reference in a new issue