From 6ebe9527ee57f6c2358861e7e269e8399a7f9b8b Mon Sep 17 00:00:00 2001 From: JuanCarlos Date: Thu, 14 Feb 2019 09:18:05 +0100 Subject: [PATCH] Edit interval from settings --- .../settings/settings-configuration.html | 19 ++++++++++--------- server/lib/update-configuration.js | 1 + server/monitoring.js | 4 ++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/public/templates/settings/settings-configuration.html b/public/templates/settings/settings-configuration.html index f206a33d4..3a70fceca 100644 --- a/public/templates/settings/settings-configuration.html +++ b/public/templates/settings/settings-configuration.html @@ -32,18 +32,19 @@ ng-style="ctrl.editingKey === key && {'background': '#e2f7ff'}"> {{key}} - + + ng-disabled="ctrl.loadingChange" type="number" class="wz-input-text" ng-model="ctrl.editingNewValue" + min=0> + ng-disabled="ctrl.loadingChange" class="wz-input-text wz-width-100" ng-model="ctrl.editingNewValue" + ng-options="o as o for o in [true, false]"> + + ng-disabled="ctrl.loadingChange" class="wz-input-text wz-width-100" ng-model="ctrl.editingNewValue"> {{value}} {{ctrl.configEquivalence(key)}} diff --git a/server/lib/update-configuration.js b/server/lib/update-configuration.js index 50e3f5396..48d60cd7c 100644 --- a/server/lib/update-configuration.js +++ b/server/lib/update-configuration.js @@ -23,6 +23,7 @@ const needRestartFields = [ 'wazuh.monitoring.frequency', 'wazuh.monitoring.shards', 'wazuh.monitoring.replicas', + 'wazuh.monitoring.creation', 'wazuh.monitoring.pattern' ]; export class UpdateConfigurationFile { diff --git a/server/monitoring.js b/server/monitoring.js index e06d71086..848cecb04 100644 --- a/server/monitoring.js +++ b/server/monitoring.js @@ -634,11 +634,11 @@ export class Monitoring { } !this.quiet && - log('[monitoring][init]', 'Creating today index...', 'info'); + log('[monitoring][init]', 'Creating new index...', 'info'); !this.quiet && this.server.log( [blueWazuh, 'monitoring', 'info'], - 'Creating today index...' + 'Creating new index...' ); await this.saveStatus();