diff --git a/plugins/main/public/components/common/modules/modules-defaults.js b/plugins/main/public/components/common/modules/modules-defaults.js index 3d18631800..52f579989b 100644 --- a/plugins/main/public/components/common/modules/modules-defaults.js +++ b/plugins/main/public/components/common/modules/modules-defaults.js @@ -19,13 +19,14 @@ import ButtonModuleExploreAgent from '../../../controllers/overview/components/o import { ButtonModuleGenerateReport } from '../modules/buttons'; import { OfficePanel } from '../../overview/office-panel'; import { GitHubPanel } from '../../overview/github-panel'; -import { DashboardVuls, InventoryVuls } from '../../overview/vulnerabilities' +import { DashboardVuls, InventoryVuls } from '../../overview/vulnerabilities'; import { withModuleNotForAgent } from '../hocs'; import WazuhDiscover from '../wazuh-discover/wz-discover'; import { threatHuntingColumns } from '../wazuh-discover/config/data-grid-columns'; import { DashboardFim } from '../../overview/fim/dashboard/dashboard'; import { InventoryFim } from '../../overview/fim/inventory/inventory'; import React from 'react'; +import { fileIntegrityMonitoringColumns } from '../../overview/fim/events/file-integrity-monitoring-columns'; const DashboardTab = { id: 'dashboard', @@ -36,21 +37,22 @@ const DashboardTab = { const ALERTS_INDEX_PATTERN = 'wazuh-alerts-*'; const DEFAULT_INDEX_PATTERN = ALERTS_INDEX_PATTERN; -const renderDiscoverTab = (indexName = DEFAULT_INDEX_PATTERN, columns) => { +const renderDiscoverTab = (indexName = DEFAULT_INDEX_PATTERN, columns) => { return { id: 'events', name: 'Events', buttons: [ButtonModuleExploreAgent], - component: () => - , - } + component: () => ( + + ), + }; }; const EventsTab = { - id: 'events', - name: 'Events', - buttons: [ButtonModuleExploreAgent], - component: Events, + id: 'events', + name: 'Events', + buttons: [ButtonModuleExploreAgent], + component: Events, }; const RegulatoryComplianceTabs = [ @@ -67,7 +69,10 @@ const RegulatoryComplianceTabs = [ export const ModulesDefaults = { general: { init: 'events', - tabs: [DashboardTab,renderDiscoverTab(DEFAULT_INDEX_PATTERN, threatHuntingColumns)], + tabs: [ + DashboardTab, + renderDiscoverTab(DEFAULT_INDEX_PATTERN, threatHuntingColumns), + ], availableFor: ['manager', 'agent'], }, fim: { @@ -85,7 +90,7 @@ export const ModulesDefaults = { buttons: [ButtonModuleExploreAgent], component: InventoryFim, }, - EventsTab, + renderDiscoverTab(DEFAULT_INDEX_PATTERN, fileIntegrityMonitoringColumns), ], availableFor: ['manager', 'agent'], }, diff --git a/plugins/main/public/components/overview/fim/events/file-integrity-monitoring-columns.tsx b/plugins/main/public/components/overview/fim/events/file-integrity-monitoring-columns.tsx new file mode 100644 index 0000000000..6027563767 --- /dev/null +++ b/plugins/main/public/components/overview/fim/events/file-integrity-monitoring-columns.tsx @@ -0,0 +1,22 @@ +import { tDataGridColumn } from '../../../common/data-grid'; + +export const fileIntegrityMonitoringColumns: tDataGridColumn[] = [ + { + id: 'agent.name', + }, + { + id: 'syscheck.path', + }, + { + id: 'syscheck.event', + }, + { + id: 'rule.description', + }, + { + id: 'rule.level', + }, + { + id: 'rule.id', + }, +];