mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Launch index pattern cron job task
This commit is contained in:
parent
b8123eab04
commit
ca56129462
4
init.js
4
init.js
@ -18,10 +18,13 @@ import { Monitoring } from './server/monitoring';
|
||||
import { WazuhApiRoutes } from './server/routes/wazuh-api';
|
||||
import { WazuhReportingRoutes } from './server/routes/wazuh-reporting';
|
||||
import { WazuhUtilsRoutes } from './server/routes/wazuh-utils';
|
||||
import { IndexPatternCronJob } from './server/index-pattern-cron-job';
|
||||
import { log } from './server/logger';
|
||||
|
||||
export function initApp(server) {
|
||||
const monitoringInstance = new Monitoring(server);
|
||||
const indexPatternCronJobInstance = new IndexPatternCronJob(server);
|
||||
|
||||
log('[initApp]', `Waiting for awaitMigration()`, 'info');
|
||||
server.kibanaMigrator
|
||||
.awaitMigration()
|
||||
@ -35,6 +38,7 @@ export function initApp(server) {
|
||||
WazuhElasticRouter(server);
|
||||
WazuhApiElasticRoutes(server);
|
||||
monitoringInstance.run();
|
||||
indexPatternCronJobInstance.run();
|
||||
WazuhApiRoutes(server);
|
||||
WazuhReportingRoutes(server);
|
||||
WazuhUtilsRoutes(server);
|
||||
|
Loading…
Reference in New Issue
Block a user