diff --git a/src/dev/typescript/projects.ts b/src/dev/typescript/projects.ts
index 34756912fc247..7214741308262 100644
--- a/src/dev/typescript/projects.ts
+++ b/src/dev/typescript/projects.ts
@@ -27,7 +27,7 @@ export const PROJECTS = [
new Project(resolve(REPO_ROOT, 'test/tsconfig.json'), { name: 'kibana/test' }),
new Project(resolve(REPO_ROOT, 'x-pack/tsconfig.json')),
new Project(resolve(REPO_ROOT, 'x-pack/test/tsconfig.json'), { name: 'x-pack/test' }),
- new Project(resolve(REPO_ROOT, 'x-pack/legacy/plugins/siem/cypress/tsconfig.json'), {
+ new Project(resolve(REPO_ROOT, 'x-pack/plugins/siem/cypress/tsconfig.json'), {
name: 'siem/cypress',
}),
new Project(resolve(REPO_ROOT, 'x-pack/legacy/plugins/apm/e2e/tsconfig.json'), {
diff --git a/x-pack/.gitignore b/x-pack/.gitignore
index 6bac5e181861d..63978bb260396 100644
--- a/x-pack/.gitignore
+++ b/x-pack/.gitignore
@@ -12,4 +12,3 @@
/.kibana-plugin-helpers.dev.*
!/legacy/plugins/infra/**/target
.cache
-!/legacy/plugins/siem/**/target
diff --git a/x-pack/index.js b/x-pack/index.js
index 893802ea81621..d9920e6a974c9 100644
--- a/x-pack/index.js
+++ b/x-pack/index.js
@@ -25,7 +25,6 @@ import { canvas } from './legacy/plugins/canvas';
import { infra } from './legacy/plugins/infra';
import { taskManager } from './legacy/plugins/task_manager';
import { rollup } from './legacy/plugins/rollup';
-import { siem } from './legacy/plugins/siem';
import { remoteClusters } from './legacy/plugins/remote_clusters';
import { crossClusterReplication } from './legacy/plugins/cross_cluster_replication';
import { upgradeAssistant } from './legacy/plugins/upgrade_assistant';
@@ -62,7 +61,6 @@ module.exports = function(kibana) {
taskManager(kibana),
rollup(kibana),
transform(kibana),
- siem(kibana),
remoteClusters(kibana),
crossClusterReplication(kibana),
upgradeAssistant(kibana),
diff --git a/x-pack/legacy/plugins/siem/default_index_pattern.ts b/x-pack/legacy/plugins/siem/default_index_pattern.ts
deleted file mode 100644
index 4d53aeb000c55..0000000000000
--- a/x-pack/legacy/plugins/siem/default_index_pattern.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-/** The comma-delimited list of Elasticsearch indices from which the SIEM app collects events */
-export const defaultIndexPattern = [
- 'apm-*-transaction*',
- 'auditbeat-*',
- 'endgame-*',
- 'filebeat-*',
- 'packetbeat-*',
- 'winlogbeat-*',
-];
diff --git a/x-pack/legacy/plugins/siem/index.ts b/x-pack/legacy/plugins/siem/index.ts
deleted file mode 100644
index db398821aecfd..0000000000000
--- a/x-pack/legacy/plugins/siem/index.ts
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { i18n } from '@kbn/i18n';
-import { resolve } from 'path';
-import { Server } from 'hapi';
-import { Root } from 'joi';
-
-import { plugin } from './server';
-import { savedObjectMappings } from './server/saved_objects';
-
-import {
- APP_ID,
- APP_NAME,
- DEFAULT_INDEX_KEY,
- DEFAULT_ANOMALY_SCORE,
- DEFAULT_SIEM_TIME_RANGE,
- DEFAULT_SIEM_REFRESH_INTERVAL,
- DEFAULT_INTERVAL_PAUSE,
- DEFAULT_INTERVAL_VALUE,
- DEFAULT_FROM,
- DEFAULT_TO,
- DEFAULT_SIGNALS_INDEX,
- ENABLE_NEWS_FEED_SETTING,
- NEWS_FEED_URL_SETTING,
- NEWS_FEED_URL_SETTING_DEFAULT,
- SIGNALS_INDEX_KEY,
- IP_REPUTATION_LINKS_SETTING,
- IP_REPUTATION_LINKS_SETTING_DEFAULT,
-} from './common/constants';
-import { defaultIndexPattern } from './default_index_pattern';
-import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/utils';
-
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const siem = (kibana: any) => {
- return new kibana.Plugin({
- id: APP_ID,
- configPrefix: 'xpack.siem',
- publicDir: resolve(__dirname, 'public'),
- require: ['kibana', 'elasticsearch', 'alerting', 'actions'],
- uiExports: {
- app: {
- description: i18n.translate('xpack.siem.securityDescription', {
- defaultMessage: 'Explore your SIEM App',
- }),
- main: 'plugins/siem/legacy',
- euiIconType: 'securityAnalyticsApp',
- title: APP_NAME,
- listed: false,
- url: `/app/${APP_ID}`,
- },
- home: ['plugins/siem/register_feature'],
- links: [
- {
- description: i18n.translate('xpack.siem.linkSecurityDescription', {
- defaultMessage: 'Explore your SIEM App',
- }),
- euiIconType: 'securityAnalyticsApp',
- id: 'siem',
- order: 9000,
- title: APP_NAME,
- url: `/app/${APP_ID}`,
- category: DEFAULT_APP_CATEGORIES.security,
- },
- ],
- uiSettingDefaults: {
- [DEFAULT_SIEM_REFRESH_INTERVAL]: {
- type: 'json',
- name: i18n.translate('xpack.siem.uiSettings.defaultRefreshIntervalLabel', {
- defaultMessage: 'Time filter refresh interval',
- }),
- value: `{
- "pause": ${DEFAULT_INTERVAL_PAUSE},
- "value": ${DEFAULT_INTERVAL_VALUE}
-}`,
- description: i18n.translate('xpack.siem.uiSettings.defaultRefreshIntervalDescription', {
- defaultMessage:
- '
Default refresh interval for the SIEM time filter, in milliseconds.
',
- }),
- category: ['siem'],
- requiresPageReload: true,
- },
- [DEFAULT_SIEM_TIME_RANGE]: {
- type: 'json',
- name: i18n.translate('xpack.siem.uiSettings.defaultTimeRangeLabel', {
- defaultMessage: 'Time filter period',
- }),
- value: `{
- "from": "${DEFAULT_FROM}",
- "to": "${DEFAULT_TO}"
-}`,
- description: i18n.translate('xpack.siem.uiSettings.defaultTimeRangeDescription', {
- defaultMessage: 'Default period of time in the SIEM time filter.
',
- }),
- category: ['siem'],
- requiresPageReload: true,
- },
- [DEFAULT_INDEX_KEY]: {
- name: i18n.translate('xpack.siem.uiSettings.defaultIndexLabel', {
- defaultMessage: 'Elasticsearch indices',
- }),
- value: defaultIndexPattern,
- description: i18n.translate('xpack.siem.uiSettings.defaultIndexDescription', {
- defaultMessage:
- 'Comma-delimited list of Elasticsearch indices from which the SIEM app collects events.
',
- }),
- category: ['siem'],
- requiresPageReload: true,
- },
- [DEFAULT_ANOMALY_SCORE]: {
- name: i18n.translate('xpack.siem.uiSettings.defaultAnomalyScoreLabel', {
- defaultMessage: 'Anomaly threshold',
- }),
- value: 50,
- type: 'number',
- description: i18n.translate('xpack.siem.uiSettings.defaultAnomalyScoreDescription', {
- defaultMessage:
- 'Value above which Machine Learning job anomalies are displayed in the SIEM app.
Valid values: 0 to 100.
',
- }),
- category: ['siem'],
- requiresPageReload: true,
- },
- [ENABLE_NEWS_FEED_SETTING]: {
- name: i18n.translate('xpack.siem.uiSettings.enableNewsFeedLabel', {
- defaultMessage: 'News feed',
- }),
- value: true,
- description: i18n.translate('xpack.siem.uiSettings.enableNewsFeedDescription', {
- defaultMessage: 'Enables the News feed
',
- }),
- type: 'boolean',
- category: ['siem'],
- requiresPageReload: true,
- },
- [NEWS_FEED_URL_SETTING]: {
- name: i18n.translate('xpack.siem.uiSettings.newsFeedUrl', {
- defaultMessage: 'News feed URL',
- }),
- value: NEWS_FEED_URL_SETTING_DEFAULT,
- description: i18n.translate('xpack.siem.uiSettings.newsFeedUrlDescription', {
- defaultMessage: 'News feed content will be retrieved from this URL
',
- }),
- category: ['siem'],
- requiresPageReload: true,
- },
- [IP_REPUTATION_LINKS_SETTING]: {
- name: i18n.translate('xpack.siem.uiSettings.ipReputationLinks', {
- defaultMessage: 'IP Reputation Links',
- }),
- value: IP_REPUTATION_LINKS_SETTING_DEFAULT,
- type: 'json',
- description: i18n.translate('xpack.siem.uiSettings.ipReputationLinksDescription', {
- defaultMessage:
- 'Array of URL templates to build the list of reputation URLs to be displayed on the IP Details page.',
- }),
- category: ['siem'],
- requiresPageReload: true,
- },
- },
- mappings: savedObjectMappings,
- },
- init(server: Server) {
- const { coreContext, env, setup, start } = server.newPlatform;
- const initializerContext = { ...coreContext, env };
- const __legacy = {
- config: server.config,
- route: server.route.bind(server),
- };
-
- // @ts-ignore-next-line: NewPlatform shim is too loosely typed
- const pluginInstance = plugin(initializerContext);
- // @ts-ignore-next-line: NewPlatform shim is too loosely typed
- pluginInstance.setup(setup.core, setup.plugins, __legacy);
- // @ts-ignore-next-line: NewPlatform shim is too loosely typed
- pluginInstance.start(start.core, start.plugins);
- },
- config(Joi: Root) {
- // See x-pack/plugins/siem/server/config.ts if you're adding another
- // value where the configuration has to be duplicated at the moment.
- // When we move over to the new platform completely this will be
- // removed and only server/config.ts should be used.
- return Joi.object()
- .keys({
- enabled: Joi.boolean().default(true),
- [SIGNALS_INDEX_KEY]: Joi.string().default(DEFAULT_SIGNALS_INDEX),
- })
- .default();
- },
- });
-};
diff --git a/x-pack/legacy/plugins/siem/public/legacy.ts b/x-pack/legacy/plugins/siem/public/legacy.ts
deleted file mode 100644
index 49a03c93120d4..0000000000000
--- a/x-pack/legacy/plugins/siem/public/legacy.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { npSetup, npStart } from 'ui/new_platform';
-
-import { PluginInitializerContext } from '../../../../../src/core/public';
-import { plugin } from './';
-
-const pluginInstance = plugin({} as PluginInitializerContext);
-
-pluginInstance.setup(npSetup.core, npSetup.plugins);
-pluginInstance.start(npStart.core, npStart.plugins);
diff --git a/x-pack/legacy/plugins/siem/public/mock/kibana_core.ts b/x-pack/legacy/plugins/siem/public/mock/kibana_core.ts
deleted file mode 100644
index cf3523a6260bb..0000000000000
--- a/x-pack/legacy/plugins/siem/public/mock/kibana_core.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { createUiNewPlatformMock } from 'ui/new_platform/__mocks__/helpers';
-
-export const createKibanaCoreSetupMock = () => createUiNewPlatformMock().npSetup.core;
-export const createKibanaPluginsSetupMock = () => createUiNewPlatformMock().npSetup.plugins;
-
-export const createKibanaCoreStartMock = () => createUiNewPlatformMock().npStart.core;
-export const createKibanaPluginsStartMock = () => createUiNewPlatformMock().npStart.plugins;
diff --git a/x-pack/legacy/plugins/siem/public/register_feature.ts b/x-pack/legacy/plugins/siem/public/register_feature.ts
deleted file mode 100644
index ca7a22408b6ff..0000000000000
--- a/x-pack/legacy/plugins/siem/public/register_feature.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { npSetup } from 'ui/new_platform';
-import { FeatureCatalogueCategory } from '../../../../../src/plugins/home/public';
-import { APP_ID } from '../common/constants';
-
-// TODO(rylnd): move this into Plugin.setup once we're on NP
-npSetup.plugins.home.featureCatalogue.register({
- id: APP_ID,
- title: 'SIEM',
- description: 'Explore security metrics and logs for events and alerts',
- icon: 'securityAnalyticsApp',
- path: `/app/${APP_ID}`,
- showOnHomePage: true,
- category: FeatureCatalogueCategory.DATA,
-});
diff --git a/x-pack/legacy/plugins/siem/server/index.ts b/x-pack/legacy/plugins/siem/server/index.ts
deleted file mode 100644
index 8513f871cb6c1..0000000000000
--- a/x-pack/legacy/plugins/siem/server/index.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { PluginInitializerContext } from '../../../../../src/core/server';
-import { Plugin } from './plugin';
-
-export const plugin = (context: PluginInitializerContext) => {
- return new Plugin(context);
-};
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/saved_object_mappings.ts b/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/saved_object_mappings.ts
deleted file mode 100644
index fd3d35e9f6785..0000000000000
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/saved_object_mappings.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { ElasticsearchMappingOf } from '../../../utils/typed_elasticsearch_mappings';
-import { IRuleStatusAttributes } from './types';
-
-export const ruleStatusSavedObjectType = 'siem-detection-engine-rule-status';
-
-export const ruleStatusSavedObjectMappings: {
- [ruleStatusSavedObjectType]: ElasticsearchMappingOf;
-} = {
- [ruleStatusSavedObjectType]: {
- properties: {
- alertId: {
- type: 'keyword',
- },
- status: {
- type: 'keyword',
- },
- statusDate: {
- type: 'date',
- },
- lastFailureAt: {
- type: 'date',
- },
- lastSuccessAt: {
- type: 'date',
- },
- lastFailureMessage: {
- type: 'text',
- },
- lastSuccessMessage: {
- type: 'text',
- },
- },
- },
-};
diff --git a/x-pack/legacy/plugins/siem/server/lib/note/saved_object_mappings.ts b/x-pack/legacy/plugins/siem/server/lib/note/saved_object_mappings.ts
deleted file mode 100644
index b001e30e52336..0000000000000
--- a/x-pack/legacy/plugins/siem/server/lib/note/saved_object_mappings.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { ElasticsearchMappingOf } from '../../utils/typed_elasticsearch_mappings';
-import { SavedNote } from './types';
-
-export const noteSavedObjectType = 'siem-ui-timeline-note';
-
-export const noteSavedObjectMappings: {
- [noteSavedObjectType]: ElasticsearchMappingOf;
-} = {
- [noteSavedObjectType]: {
- properties: {
- timelineId: {
- type: 'keyword',
- },
- eventId: {
- type: 'keyword',
- },
- note: {
- type: 'text',
- },
- created: {
- type: 'date',
- },
- createdBy: {
- type: 'text',
- },
- updated: {
- type: 'date',
- },
- updatedBy: {
- type: 'text',
- },
- },
- },
-};
diff --git a/x-pack/legacy/plugins/siem/server/lib/pinned_event/saved_object_mappings.ts b/x-pack/legacy/plugins/siem/server/lib/pinned_event/saved_object_mappings.ts
deleted file mode 100644
index 322f585ae8ff2..0000000000000
--- a/x-pack/legacy/plugins/siem/server/lib/pinned_event/saved_object_mappings.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { ElasticsearchMappingOf } from '../../utils/typed_elasticsearch_mappings';
-import { SavedPinnedEvent } from './types';
-
-export const pinnedEventSavedObjectType = 'siem-ui-timeline-pinned-event';
-
-export const pinnedEventSavedObjectMappings: {
- [pinnedEventSavedObjectType]: ElasticsearchMappingOf;
-} = {
- [pinnedEventSavedObjectType]: {
- properties: {
- timelineId: {
- type: 'keyword',
- },
- eventId: {
- type: 'keyword',
- },
- created: {
- type: 'date',
- },
- createdBy: {
- type: 'text',
- },
- updated: {
- type: 'date',
- },
- updatedBy: {
- type: 'text',
- },
- },
- },
-};
diff --git a/x-pack/legacy/plugins/siem/server/lib/timeline/saved_object_mappings.ts b/x-pack/legacy/plugins/siem/server/lib/timeline/saved_object_mappings.ts
deleted file mode 100644
index 8fc12fd56a8f6..0000000000000
--- a/x-pack/legacy/plugins/siem/server/lib/timeline/saved_object_mappings.ts
+++ /dev/null
@@ -1,275 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { ElasticsearchMappingOf } from '../../utils/typed_elasticsearch_mappings';
-import { SavedTimeline } from './types';
-
-export const timelineSavedObjectType = 'siem-ui-timeline';
-
-export const timelineSavedObjectMappings: {
- [timelineSavedObjectType]: ElasticsearchMappingOf;
-} = {
- [timelineSavedObjectType]: {
- properties: {
- columns: {
- properties: {
- aggregatable: {
- type: 'boolean',
- },
- category: {
- type: 'keyword',
- },
- columnHeaderType: {
- type: 'keyword',
- },
- description: {
- type: 'text',
- },
- example: {
- type: 'text',
- },
- indexes: {
- type: 'keyword',
- },
- id: {
- type: 'keyword',
- },
- name: {
- type: 'text',
- },
- placeholder: {
- type: 'text',
- },
- searchable: {
- type: 'boolean',
- },
- type: {
- type: 'keyword',
- },
- },
- },
- dataProviders: {
- properties: {
- id: {
- type: 'keyword',
- },
- name: {
- type: 'text',
- },
- enabled: {
- type: 'boolean',
- },
- excluded: {
- type: 'boolean',
- },
- kqlQuery: {
- type: 'text',
- },
- queryMatch: {
- properties: {
- field: {
- type: 'text',
- },
- displayField: {
- type: 'text',
- },
- value: {
- type: 'text',
- },
- displayValue: {
- type: 'text',
- },
- operator: {
- type: 'text',
- },
- },
- },
- and: {
- properties: {
- id: {
- type: 'keyword',
- },
- name: {
- type: 'text',
- },
- enabled: {
- type: 'boolean',
- },
- excluded: {
- type: 'boolean',
- },
- kqlQuery: {
- type: 'text',
- },
- queryMatch: {
- properties: {
- field: {
- type: 'text',
- },
- displayField: {
- type: 'text',
- },
- value: {
- type: 'text',
- },
- displayValue: {
- type: 'text',
- },
- operator: {
- type: 'text',
- },
- },
- },
- },
- },
- },
- },
- description: {
- type: 'text',
- },
- eventType: {
- type: 'keyword',
- },
- favorite: {
- properties: {
- keySearch: {
- type: 'text',
- },
- fullName: {
- type: 'text',
- },
- userName: {
- type: 'text',
- },
- favoriteDate: {
- type: 'date',
- },
- },
- },
- filters: {
- properties: {
- meta: {
- properties: {
- alias: {
- type: 'text',
- },
- controlledBy: {
- type: 'text',
- },
- disabled: {
- type: 'boolean',
- },
- field: {
- type: 'text',
- },
- formattedValue: {
- type: 'text',
- },
- index: {
- type: 'keyword',
- },
- key: {
- type: 'keyword',
- },
- negate: {
- type: 'boolean',
- },
- params: {
- type: 'text',
- },
- type: {
- type: 'keyword',
- },
- value: {
- type: 'text',
- },
- },
- },
- exists: {
- type: 'text',
- },
- match_all: {
- type: 'text',
- },
- missing: {
- type: 'text',
- },
- query: {
- type: 'text',
- },
- range: {
- type: 'text',
- },
- script: {
- type: 'text',
- },
- },
- },
- kqlMode: {
- type: 'keyword',
- },
- kqlQuery: {
- properties: {
- filterQuery: {
- properties: {
- kuery: {
- properties: {
- kind: {
- type: 'keyword',
- },
- expression: {
- type: 'text',
- },
- },
- },
- serializedQuery: {
- type: 'text',
- },
- },
- },
- },
- },
- title: {
- type: 'text',
- },
- dateRange: {
- properties: {
- start: {
- type: 'date',
- },
- end: {
- type: 'date',
- },
- },
- },
- savedQueryId: {
- type: 'keyword',
- },
- sort: {
- properties: {
- columnId: {
- type: 'keyword',
- },
- sortDirection: {
- type: 'keyword',
- },
- },
- },
- created: {
- type: 'date',
- },
- createdBy: {
- type: 'text',
- },
- updated: {
- type: 'date',
- },
- updatedBy: {
- type: 'text',
- },
- },
- },
-};
diff --git a/x-pack/legacy/plugins/siem/server/plugin.ts b/x-pack/legacy/plugins/siem/server/plugin.ts
deleted file mode 100644
index d9d381498fb56..0000000000000
--- a/x-pack/legacy/plugins/siem/server/plugin.ts
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { i18n } from '@kbn/i18n';
-
-import {
- PluginStartContract as AlertingStart,
- PluginSetupContract as AlertingSetup,
-} from '../../../../plugins/alerting/server';
-import {
- CoreSetup,
- CoreStart,
- PluginInitializerContext,
- Logger,
-} from '../../../../../src/core/server';
-import { SecurityPluginSetup as SecuritySetup } from '../../../../plugins/security/server';
-import { PluginSetupContract as FeaturesSetup } from '../../../../plugins/features/server';
-import { EncryptedSavedObjectsPluginSetup as EncryptedSavedObjectsSetup } from '../../../../plugins/encrypted_saved_objects/server';
-import { SpacesPluginSetup as SpacesSetup } from '../../../../plugins/spaces/server';
-import { PluginStartContract as ActionsStart } from '../../../../plugins/actions/server';
-import { LegacyServices } from './types';
-import { initServer } from './init_server';
-import { compose } from './lib/compose/kibana';
-import { initRoutes } from './routes';
-import { isAlertExecutor } from './lib/detection_engine/signals/types';
-import { signalRulesAlertType } from './lib/detection_engine/signals/signal_rule_alert_type';
-import {
- noteSavedObjectType,
- pinnedEventSavedObjectType,
- timelineSavedObjectType,
- ruleStatusSavedObjectType,
-} from './saved_objects';
-import { SiemClientFactory } from './client';
-
-export { CoreSetup, CoreStart };
-
-export interface SetupPlugins {
- encryptedSavedObjects: EncryptedSavedObjectsSetup;
- features: FeaturesSetup;
- security: SecuritySetup;
- spaces?: SpacesSetup;
- alerting: AlertingSetup;
-}
-
-export interface StartPlugins {
- actions: ActionsStart;
- alerting: AlertingStart;
-}
-
-export class Plugin {
- readonly name = 'siem';
- private readonly logger: Logger;
- private context: PluginInitializerContext;
- private siemClientFactory: SiemClientFactory;
-
- constructor(context: PluginInitializerContext) {
- this.context = context;
- this.logger = context.logger.get('plugins', this.name);
- this.siemClientFactory = new SiemClientFactory();
-
- this.logger.debug('Shim plugin initialized');
- }
-
- public setup(core: CoreSetup, plugins: SetupPlugins, __legacy: LegacyServices) {
- this.logger.debug('Shim plugin setup');
-
- const router = core.http.createRouter();
- core.http.registerRouteHandlerContext(this.name, (context, request, response) => ({
- getSiemClient: () => this.siemClientFactory.create(request),
- }));
-
- this.siemClientFactory.setup({
- getSpaceId: plugins.spaces?.spacesService?.getSpaceId,
- config: __legacy.config,
- });
-
- initRoutes(
- router,
- __legacy.config,
- plugins.encryptedSavedObjects?.usingEphemeralEncryptionKey ?? false
- );
-
- plugins.features.registerFeature({
- id: this.name,
- name: i18n.translate('xpack.siem.featureRegistry.linkSiemTitle', {
- defaultMessage: 'SIEM',
- }),
- icon: 'securityAnalyticsApp',
- navLinkId: 'siem',
- app: ['siem', 'kibana'],
- catalogue: ['siem'],
- privileges: {
- all: {
- api: ['siem', 'actions-read', 'actions-all', 'alerting-read', 'alerting-all'],
- savedObject: {
- all: [
- 'alert',
- 'action',
- 'action_task_params',
- noteSavedObjectType,
- pinnedEventSavedObjectType,
- timelineSavedObjectType,
- ruleStatusSavedObjectType,
- ],
- read: ['config'],
- },
- ui: [
- 'show',
- 'crud',
- 'alerting:show',
- 'actions:show',
- 'alerting:save',
- 'actions:save',
- 'alerting:delete',
- 'actions:delete',
- ],
- },
- read: {
- api: ['siem', 'actions-read', 'actions-all', 'alerting-read', 'alerting-all'],
- savedObject: {
- all: ['alert', 'action', 'action_task_params'],
- read: [
- 'config',
- noteSavedObjectType,
- pinnedEventSavedObjectType,
- timelineSavedObjectType,
- ruleStatusSavedObjectType,
- ],
- },
- ui: [
- 'show',
- 'alerting:show',
- 'actions:show',
- 'alerting:save',
- 'actions:save',
- 'alerting:delete',
- 'actions:delete',
- ],
- },
- },
- });
-
- if (plugins.alerting != null) {
- const type = signalRulesAlertType({
- logger: this.logger,
- version: this.context.env.packageInfo.version,
- });
- if (isAlertExecutor(type)) {
- plugins.alerting.registerType(type);
- }
- }
-
- const libs = compose(core, plugins, this.context.env.mode.prod);
- initServer(libs);
- }
-
- public start(core: CoreStart, plugins: StartPlugins) {}
-}
diff --git a/x-pack/legacy/plugins/siem/server/saved_objects.ts b/x-pack/legacy/plugins/siem/server/saved_objects.ts
deleted file mode 100644
index 76d8837883b8b..0000000000000
--- a/x-pack/legacy/plugins/siem/server/saved_objects.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { noteSavedObjectType, noteSavedObjectMappings } from './lib/note/saved_object_mappings';
-import {
- pinnedEventSavedObjectType,
- pinnedEventSavedObjectMappings,
-} from './lib/pinned_event/saved_object_mappings';
-import {
- timelineSavedObjectType,
- timelineSavedObjectMappings,
-} from './lib/timeline/saved_object_mappings';
-import {
- ruleStatusSavedObjectMappings,
- ruleStatusSavedObjectType,
-} from './lib/detection_engine/rules/saved_object_mappings';
-
-export {
- noteSavedObjectType,
- pinnedEventSavedObjectType,
- ruleStatusSavedObjectType,
- timelineSavedObjectType,
-};
-export const savedObjectMappings = {
- ...timelineSavedObjectMappings,
- ...noteSavedObjectMappings,
- ...pinnedEventSavedObjectMappings,
- ...ruleStatusSavedObjectMappings,
-};
diff --git a/x-pack/legacy/plugins/siem/tsconfig.json b/x-pack/legacy/plugins/siem/tsconfig.json
deleted file mode 100644
index b027bb4567b97..0000000000000
--- a/x-pack/legacy/plugins/siem/tsconfig.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "../../../tsconfig.json"
-}
\ No newline at end of file
diff --git a/x-pack/legacy/plugins/siem/.gitattributes b/x-pack/plugins/siem/.gitattributes
similarity index 100%
rename from x-pack/legacy/plugins/siem/.gitattributes
rename to x-pack/plugins/siem/.gitattributes
diff --git a/x-pack/legacy/plugins/siem/common/constants.ts b/x-pack/plugins/siem/common/constants.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/common/constants.ts
rename to x-pack/plugins/siem/common/constants.ts
index 2a30293c244af..51afd03874ec7 100644
--- a/x-pack/legacy/plugins/siem/common/constants.ts
+++ b/x-pack/plugins/siem/common/constants.ts
@@ -11,6 +11,14 @@ export const DEFAULT_DATE_FORMAT = 'dateFormat';
export const DEFAULT_DATE_FORMAT_TZ = 'dateFormat:tz';
export const DEFAULT_DARK_MODE = 'theme:darkMode';
export const DEFAULT_INDEX_KEY = 'siem:defaultIndex';
+export const DEFAULT_INDEX_PATTERN = [
+ 'apm-*-transaction*',
+ 'auditbeat-*',
+ 'endgame-*',
+ 'filebeat-*',
+ 'packetbeat-*',
+ 'winlogbeat-*',
+];
export const DEFAULT_NUMBER_FORMAT = 'format:number:defaultPattern';
export const DEFAULT_TIME_RANGE = 'timepicker:timeDefaults';
export const DEFAULT_REFRESH_RATE_INTERVAL = 'timepicker:refreshIntervalDefaults';
diff --git a/x-pack/legacy/plugins/siem/common/graphql/root/index.ts b/x-pack/plugins/siem/common/graphql/root/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/common/graphql/root/index.ts
rename to x-pack/plugins/siem/common/graphql/root/index.ts
diff --git a/x-pack/legacy/plugins/siem/common/graphql/root/schema.gql.ts b/x-pack/plugins/siem/common/graphql/root/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/common/graphql/root/schema.gql.ts
rename to x-pack/plugins/siem/common/graphql/root/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/common/graphql/shared/index.ts b/x-pack/plugins/siem/common/graphql/shared/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/common/graphql/shared/index.ts
rename to x-pack/plugins/siem/common/graphql/shared/index.ts
diff --git a/x-pack/legacy/plugins/siem/common/graphql/shared/schema.gql.ts b/x-pack/plugins/siem/common/graphql/shared/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/common/graphql/shared/schema.gql.ts
rename to x-pack/plugins/siem/common/graphql/shared/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/common/typed_json.ts b/x-pack/plugins/siem/common/typed_json.ts
similarity index 91%
rename from x-pack/legacy/plugins/siem/common/typed_json.ts
rename to x-pack/plugins/siem/common/typed_json.ts
index dcd26d176d746..62e7319e091cb 100644
--- a/x-pack/legacy/plugins/siem/common/typed_json.ts
+++ b/x-pack/plugins/siem/common/typed_json.ts
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
-import { JsonObject } from '../../../../../src/plugins/kibana_utils/public';
+import { JsonObject } from '../../../../src/plugins/kibana_utils/public';
export type ESQuery = ESRangeQuery | ESQueryStringQuery | ESMatchQuery | ESTermQuery | JsonObject;
diff --git a/x-pack/legacy/plugins/siem/common/utility_types.ts b/x-pack/plugins/siem/common/utility_types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/common/utility_types.ts
rename to x-pack/plugins/siem/common/utility_types.ts
diff --git a/x-pack/legacy/plugins/siem/cypress.json b/x-pack/plugins/siem/cypress.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress.json
rename to x-pack/plugins/siem/cypress.json
diff --git a/x-pack/legacy/plugins/siem/cypress/.eslintrc.json b/x-pack/plugins/siem/cypress/.eslintrc.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/.eslintrc.json
rename to x-pack/plugins/siem/cypress/.eslintrc.json
diff --git a/x-pack/legacy/plugins/siem/cypress/.gitignore b/x-pack/plugins/siem/cypress/.gitignore
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/.gitignore
rename to x-pack/plugins/siem/cypress/.gitignore
diff --git a/x-pack/legacy/plugins/siem/cypress/README.md b/x-pack/plugins/siem/cypress/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/README.md
rename to x-pack/plugins/siem/cypress/README.md
diff --git a/x-pack/legacy/plugins/siem/cypress/fixtures/overview.json b/x-pack/plugins/siem/cypress/fixtures/overview.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/fixtures/overview.json
rename to x-pack/plugins/siem/cypress/fixtures/overview.json
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/events_viewer.spec.ts b/x-pack/plugins/siem/cypress/integration/events_viewer.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/events_viewer.spec.ts
rename to x-pack/plugins/siem/cypress/integration/events_viewer.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/fields_browser.spec.ts b/x-pack/plugins/siem/cypress/integration/fields_browser.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/fields_browser.spec.ts
rename to x-pack/plugins/siem/cypress/integration/fields_browser.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/inspect.spec.ts b/x-pack/plugins/siem/cypress/integration/inspect.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/inspect.spec.ts
rename to x-pack/plugins/siem/cypress/integration/inspect.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/ml_conditional_links.spec.ts b/x-pack/plugins/siem/cypress/integration/ml_conditional_links.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/ml_conditional_links.spec.ts
rename to x-pack/plugins/siem/cypress/integration/ml_conditional_links.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/navigation.spec.ts b/x-pack/plugins/siem/cypress/integration/navigation.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/navigation.spec.ts
rename to x-pack/plugins/siem/cypress/integration/navigation.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/overview.spec.ts b/x-pack/plugins/siem/cypress/integration/overview.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/overview.spec.ts
rename to x-pack/plugins/siem/cypress/integration/overview.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/pagination.spec.ts b/x-pack/plugins/siem/cypress/integration/pagination.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/pagination.spec.ts
rename to x-pack/plugins/siem/cypress/integration/pagination.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/signal_detection_rules.spec.ts b/x-pack/plugins/siem/cypress/integration/signal_detection_rules.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/signal_detection_rules.spec.ts
rename to x-pack/plugins/siem/cypress/integration/signal_detection_rules.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/timeline_data_providers.spec.ts b/x-pack/plugins/siem/cypress/integration/timeline_data_providers.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/timeline_data_providers.spec.ts
rename to x-pack/plugins/siem/cypress/integration/timeline_data_providers.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/timeline_flyout_button.spec.ts b/x-pack/plugins/siem/cypress/integration/timeline_flyout_button.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/timeline_flyout_button.spec.ts
rename to x-pack/plugins/siem/cypress/integration/timeline_flyout_button.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/timeline_search_or_filter.spec.ts b/x-pack/plugins/siem/cypress/integration/timeline_search_or_filter.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/timeline_search_or_filter.spec.ts
rename to x-pack/plugins/siem/cypress/integration/timeline_search_or_filter.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/timeline_toggle_column.spec.ts b/x-pack/plugins/siem/cypress/integration/timeline_toggle_column.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/timeline_toggle_column.spec.ts
rename to x-pack/plugins/siem/cypress/integration/timeline_toggle_column.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/url_state.spec.ts b/x-pack/plugins/siem/cypress/integration/url_state.spec.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/integration/url_state.spec.ts
rename to x-pack/plugins/siem/cypress/integration/url_state.spec.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/plugins/index.js b/x-pack/plugins/siem/cypress/plugins/index.js
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/plugins/index.js
rename to x-pack/plugins/siem/cypress/plugins/index.js
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/date_picker.ts b/x-pack/plugins/siem/cypress/screens/date_picker.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/date_picker.ts
rename to x-pack/plugins/siem/cypress/screens/date_picker.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/detections.ts b/x-pack/plugins/siem/cypress/screens/detections.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/detections.ts
rename to x-pack/plugins/siem/cypress/screens/detections.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/fields_browser.ts b/x-pack/plugins/siem/cypress/screens/fields_browser.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/fields_browser.ts
rename to x-pack/plugins/siem/cypress/screens/fields_browser.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/hosts/all_hosts.ts b/x-pack/plugins/siem/cypress/screens/hosts/all_hosts.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/hosts/all_hosts.ts
rename to x-pack/plugins/siem/cypress/screens/hosts/all_hosts.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/hosts/authentications.ts b/x-pack/plugins/siem/cypress/screens/hosts/authentications.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/hosts/authentications.ts
rename to x-pack/plugins/siem/cypress/screens/hosts/authentications.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/hosts/events.ts b/x-pack/plugins/siem/cypress/screens/hosts/events.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/hosts/events.ts
rename to x-pack/plugins/siem/cypress/screens/hosts/events.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/hosts/main.ts b/x-pack/plugins/siem/cypress/screens/hosts/main.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/hosts/main.ts
rename to x-pack/plugins/siem/cypress/screens/hosts/main.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/hosts/uncommon_processes.ts b/x-pack/plugins/siem/cypress/screens/hosts/uncommon_processes.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/hosts/uncommon_processes.ts
rename to x-pack/plugins/siem/cypress/screens/hosts/uncommon_processes.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/inspect.ts b/x-pack/plugins/siem/cypress/screens/inspect.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/inspect.ts
rename to x-pack/plugins/siem/cypress/screens/inspect.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/network/flows.ts b/x-pack/plugins/siem/cypress/screens/network/flows.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/network/flows.ts
rename to x-pack/plugins/siem/cypress/screens/network/flows.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/overview.ts b/x-pack/plugins/siem/cypress/screens/overview.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/overview.ts
rename to x-pack/plugins/siem/cypress/screens/overview.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/pagination.ts b/x-pack/plugins/siem/cypress/screens/pagination.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/pagination.ts
rename to x-pack/plugins/siem/cypress/screens/pagination.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/siem_header.ts b/x-pack/plugins/siem/cypress/screens/siem_header.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/siem_header.ts
rename to x-pack/plugins/siem/cypress/screens/siem_header.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/siem_main.ts b/x-pack/plugins/siem/cypress/screens/siem_main.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/siem_main.ts
rename to x-pack/plugins/siem/cypress/screens/siem_main.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/signal_detection_rules.ts b/x-pack/plugins/siem/cypress/screens/signal_detection_rules.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/signal_detection_rules.ts
rename to x-pack/plugins/siem/cypress/screens/signal_detection_rules.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/screens/timeline.ts b/x-pack/plugins/siem/cypress/screens/timeline.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/screens/timeline.ts
rename to x-pack/plugins/siem/cypress/screens/timeline.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/support/commands.js b/x-pack/plugins/siem/cypress/support/commands.js
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/support/commands.js
rename to x-pack/plugins/siem/cypress/support/commands.js
diff --git a/x-pack/legacy/plugins/siem/cypress/support/index.d.ts b/x-pack/plugins/siem/cypress/support/index.d.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/support/index.d.ts
rename to x-pack/plugins/siem/cypress/support/index.d.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/support/index.js b/x-pack/plugins/siem/cypress/support/index.js
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/support/index.js
rename to x-pack/plugins/siem/cypress/support/index.js
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/common.ts b/x-pack/plugins/siem/cypress/tasks/common.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/common.ts
rename to x-pack/plugins/siem/cypress/tasks/common.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/date_picker.ts b/x-pack/plugins/siem/cypress/tasks/date_picker.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/date_picker.ts
rename to x-pack/plugins/siem/cypress/tasks/date_picker.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/detections.ts b/x-pack/plugins/siem/cypress/tasks/detections.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/detections.ts
rename to x-pack/plugins/siem/cypress/tasks/detections.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/fields_browser.ts b/x-pack/plugins/siem/cypress/tasks/fields_browser.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/fields_browser.ts
rename to x-pack/plugins/siem/cypress/tasks/fields_browser.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/hosts/all_hosts.ts b/x-pack/plugins/siem/cypress/tasks/hosts/all_hosts.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/hosts/all_hosts.ts
rename to x-pack/plugins/siem/cypress/tasks/hosts/all_hosts.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/hosts/authentications.ts b/x-pack/plugins/siem/cypress/tasks/hosts/authentications.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/hosts/authentications.ts
rename to x-pack/plugins/siem/cypress/tasks/hosts/authentications.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/hosts/events.ts b/x-pack/plugins/siem/cypress/tasks/hosts/events.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/hosts/events.ts
rename to x-pack/plugins/siem/cypress/tasks/hosts/events.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/hosts/main.ts b/x-pack/plugins/siem/cypress/tasks/hosts/main.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/hosts/main.ts
rename to x-pack/plugins/siem/cypress/tasks/hosts/main.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/hosts/uncommon_processes.ts b/x-pack/plugins/siem/cypress/tasks/hosts/uncommon_processes.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/hosts/uncommon_processes.ts
rename to x-pack/plugins/siem/cypress/tasks/hosts/uncommon_processes.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/inspect.ts b/x-pack/plugins/siem/cypress/tasks/inspect.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/inspect.ts
rename to x-pack/plugins/siem/cypress/tasks/inspect.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/login.ts b/x-pack/plugins/siem/cypress/tasks/login.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/cypress/tasks/login.ts
rename to x-pack/plugins/siem/cypress/tasks/login.ts
index 883bdb2a4820a..e6aca9428482e 100644
--- a/x-pack/legacy/plugins/siem/cypress/tasks/login.ts
+++ b/x-pack/plugins/siem/cypress/tasks/login.ts
@@ -10,7 +10,7 @@ import * as yaml from 'js-yaml';
* Credentials in the `kibana.dev.yml` config file will be used to authenticate
* with Kibana when credentials are not provided via environment variables
*/
-const KIBANA_DEV_YML_PATH = '../../../../config/kibana.dev.yml';
+const KIBANA_DEV_YML_PATH = '../../../config/kibana.dev.yml';
/**
* The configuration path in `kibana.dev.yml` to the username to be used when
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/network/flows.ts b/x-pack/plugins/siem/cypress/tasks/network/flows.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/network/flows.ts
rename to x-pack/plugins/siem/cypress/tasks/network/flows.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/overview.ts b/x-pack/plugins/siem/cypress/tasks/overview.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/overview.ts
rename to x-pack/plugins/siem/cypress/tasks/overview.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/pagination.ts b/x-pack/plugins/siem/cypress/tasks/pagination.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/pagination.ts
rename to x-pack/plugins/siem/cypress/tasks/pagination.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/siem_header.ts b/x-pack/plugins/siem/cypress/tasks/siem_header.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/siem_header.ts
rename to x-pack/plugins/siem/cypress/tasks/siem_header.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/siem_main.ts b/x-pack/plugins/siem/cypress/tasks/siem_main.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/siem_main.ts
rename to x-pack/plugins/siem/cypress/tasks/siem_main.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/signal_detection_rules.ts b/x-pack/plugins/siem/cypress/tasks/signal_detection_rules.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/signal_detection_rules.ts
rename to x-pack/plugins/siem/cypress/tasks/signal_detection_rules.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/timeline.ts b/x-pack/plugins/siem/cypress/tasks/timeline.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/tasks/timeline.ts
rename to x-pack/plugins/siem/cypress/tasks/timeline.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/tsconfig.json b/x-pack/plugins/siem/cypress/tsconfig.json
similarity index 75%
rename from x-pack/legacy/plugins/siem/cypress/tsconfig.json
rename to x-pack/plugins/siem/cypress/tsconfig.json
index b9c1d950eaaef..de49e42d04045 100644
--- a/x-pack/legacy/plugins/siem/cypress/tsconfig.json
+++ b/x-pack/plugins/siem/cypress/tsconfig.json
@@ -1,5 +1,5 @@
{
- "extends": "../../../../tsconfig.json",
+ "extends": "../../../tsconfig.json",
"exclude": [],
"include": [
"./**/*"
@@ -10,4 +10,4 @@
"node"
]
}
-}
\ No newline at end of file
+}
diff --git a/x-pack/legacy/plugins/siem/cypress/urls/ml_conditional_links.ts b/x-pack/plugins/siem/cypress/urls/ml_conditional_links.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/urls/ml_conditional_links.ts
rename to x-pack/plugins/siem/cypress/urls/ml_conditional_links.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/urls/navigation.ts b/x-pack/plugins/siem/cypress/urls/navigation.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/urls/navigation.ts
rename to x-pack/plugins/siem/cypress/urls/navigation.ts
diff --git a/x-pack/legacy/plugins/siem/cypress/urls/state.ts b/x-pack/plugins/siem/cypress/urls/state.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/cypress/urls/state.ts
rename to x-pack/plugins/siem/cypress/urls/state.ts
diff --git a/x-pack/legacy/plugins/siem/dev_tools/circular_deps/run_check_circular_deps_cli.js b/x-pack/plugins/siem/dev_tools/circular_deps/run_check_circular_deps_cli.js
similarity index 100%
rename from x-pack/legacy/plugins/siem/dev_tools/circular_deps/run_check_circular_deps_cli.js
rename to x-pack/plugins/siem/dev_tools/circular_deps/run_check_circular_deps_cli.js
diff --git a/x-pack/plugins/siem/kibana.json b/x-pack/plugins/siem/kibana.json
index 2bc33b87a1b43..a97c0d0aaa7df 100644
--- a/x-pack/plugins/siem/kibana.json
+++ b/x-pack/plugins/siem/kibana.json
@@ -3,6 +3,21 @@
"version": "8.0.0",
"kibanaVersion": "kibana",
"configPath": ["xpack", "siem"],
+ "requiredPlugins": [
+ "actions",
+ "alerting",
+ "data",
+ "encryptedSavedObjects",
+ "embeddable",
+ "features",
+ "home",
+ "inspector",
+ "security",
+ "spaces",
+ "uiActions",
+ "usageCollection"
+ ],
+ "optionalPlugins": ["newsfeed"],
"server": true,
- "ui": false
+ "ui": true
}
diff --git a/x-pack/legacy/plugins/siem/package.json b/x-pack/plugins/siem/package.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/package.json
rename to x-pack/plugins/siem/package.json
diff --git a/x-pack/legacy/plugins/siem/public/app/app.tsx b/x-pack/plugins/siem/public/app/app.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/app/app.tsx
rename to x-pack/plugins/siem/public/app/app.tsx
index 7413aeab549db..0f3eb999d508e 100644
--- a/x-pack/legacy/plugins/siem/public/app/app.tsx
+++ b/x-pack/plugins/siem/public/app/app.tsx
@@ -18,7 +18,7 @@ import { BehaviorSubject } from 'rxjs';
import { pluck } from 'rxjs/operators';
import { KibanaContextProvider, useKibana, useUiSetting$ } from '../lib/kibana';
-import { Storage } from '../../../../../../src/plugins/kibana_utils/public';
+import { Storage } from '../../../../../src/plugins/kibana_utils/public';
import { DEFAULT_DARK_MODE } from '../../common/constants';
import { ErrorToastDispatcher } from '../components/error_toast_dispatcher';
diff --git a/x-pack/legacy/plugins/siem/public/app/index.tsx b/x-pack/plugins/siem/public/app/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/app/index.tsx
rename to x-pack/plugins/siem/public/app/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/alerts_table.tsx b/x-pack/plugins/siem/public/components/alerts_viewer/alerts_table.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/alerts_viewer/alerts_table.tsx
rename to x-pack/plugins/siem/public/components/alerts_viewer/alerts_table.tsx
index 05d8f97bb8849..f349d4ac13b4a 100644
--- a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/alerts_table.tsx
+++ b/x-pack/plugins/siem/public/components/alerts_viewer/alerts_table.tsx
@@ -6,7 +6,7 @@
import React, { useMemo } from 'react';
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
import { StatefulEventsViewer } from '../events_viewer';
import * as i18n from './translations';
import { alertsDefaultModel } from './default_headers';
diff --git a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/default_headers.ts b/x-pack/plugins/siem/public/components/alerts_viewer/default_headers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/alerts_viewer/default_headers.ts
rename to x-pack/plugins/siem/public/components/alerts_viewer/default_headers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/histogram_configs.ts b/x-pack/plugins/siem/public/components/alerts_viewer/histogram_configs.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/alerts_viewer/histogram_configs.ts
rename to x-pack/plugins/siem/public/components/alerts_viewer/histogram_configs.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/index.tsx b/x-pack/plugins/siem/public/components/alerts_viewer/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/alerts_viewer/index.tsx
rename to x-pack/plugins/siem/public/components/alerts_viewer/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/translations.ts b/x-pack/plugins/siem/public/components/alerts_viewer/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/alerts_viewer/translations.ts
rename to x-pack/plugins/siem/public/components/alerts_viewer/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/types.ts b/x-pack/plugins/siem/public/components/alerts_viewer/types.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/components/alerts_viewer/types.ts
rename to x-pack/plugins/siem/public/components/alerts_viewer/types.ts
index a24c66e31e670..321f7214c8fef 100644
--- a/x-pack/legacy/plugins/siem/public/components/alerts_viewer/types.ts
+++ b/x-pack/plugins/siem/public/components/alerts_viewer/types.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
import { HostsComponentsQueryProps } from '../../pages/hosts/navigation/types';
import { NetworkComponentQueryProps } from '../../pages/network/navigation/types';
import { MatrixHistogramOption } from '../matrix_histogram/types';
diff --git a/x-pack/legacy/plugins/siem/public/components/and_or_badge/__examples__/index.stories.tsx b/x-pack/plugins/siem/public/components/and_or_badge/__examples__/index.stories.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/and_or_badge/__examples__/index.stories.tsx
rename to x-pack/plugins/siem/public/components/and_or_badge/__examples__/index.stories.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/and_or_badge/index.tsx b/x-pack/plugins/siem/public/components/and_or_badge/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/and_or_badge/index.tsx
rename to x-pack/plugins/siem/public/components/and_or_badge/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/and_or_badge/translations.ts b/x-pack/plugins/siem/public/components/and_or_badge/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/and_or_badge/translations.ts
rename to x-pack/plugins/siem/public/components/and_or_badge/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/arrows/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/arrows/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/arrows/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/arrows/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/arrows/helpers.test.ts b/x-pack/plugins/siem/public/components/arrows/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/arrows/helpers.test.ts
rename to x-pack/plugins/siem/public/components/arrows/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/arrows/helpers.ts b/x-pack/plugins/siem/public/components/arrows/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/arrows/helpers.ts
rename to x-pack/plugins/siem/public/components/arrows/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/arrows/index.test.tsx b/x-pack/plugins/siem/public/components/arrows/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/arrows/index.test.tsx
rename to x-pack/plugins/siem/public/components/arrows/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/arrows/index.tsx b/x-pack/plugins/siem/public/components/arrows/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/arrows/index.tsx
rename to x-pack/plugins/siem/public/components/arrows/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/__examples__/index.stories.tsx b/x-pack/plugins/siem/public/components/autocomplete_field/__examples__/index.stories.tsx
similarity index 94%
rename from x-pack/legacy/plugins/siem/public/components/autocomplete_field/__examples__/index.stories.tsx
rename to x-pack/plugins/siem/public/components/autocomplete_field/__examples__/index.stories.tsx
index 8f261da629f94..dccc156ff6e44 100644
--- a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/__examples__/index.stories.tsx
+++ b/x-pack/plugins/siem/public/components/autocomplete_field/__examples__/index.stories.tsx
@@ -11,7 +11,7 @@ import euiLightVars from '@elastic/eui/dist/eui_theme_light.json';
import {
QuerySuggestion,
QuerySuggestionTypes,
-} from '../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../src/plugins/data/public';
import { SuggestionItem } from '../suggestion_item';
const suggestion: QuerySuggestion = {
diff --git a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/autocomplete_field/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/autocomplete_field/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/autocomplete_field/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.test.tsx b/x-pack/plugins/siem/public/components/autocomplete_field/index.test.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.test.tsx
rename to x-pack/plugins/siem/public/components/autocomplete_field/index.test.tsx
index 55e114818ffea..72236d799f995 100644
--- a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.test.tsx
+++ b/x-pack/plugins/siem/public/components/autocomplete_field/index.test.tsx
@@ -10,10 +10,7 @@ import { mount, shallow } from 'enzyme';
import { noop } from 'lodash/fp';
import React from 'react';
import { ThemeProvider } from 'styled-components';
-import {
- QuerySuggestion,
- QuerySuggestionTypes,
-} from '../../../../../../../src/plugins/data/public';
+import { QuerySuggestion, QuerySuggestionTypes } from '../../../../../../src/plugins/data/public';
import { TestProviders } from '../../mock';
diff --git a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.tsx b/x-pack/plugins/siem/public/components/autocomplete_field/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.tsx
rename to x-pack/plugins/siem/public/components/autocomplete_field/index.tsx
index f051e18f8acab..b6a2eec9bc6ae 100644
--- a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.tsx
+++ b/x-pack/plugins/siem/public/components/autocomplete_field/index.tsx
@@ -11,9 +11,8 @@ import {
EuiPanel,
} from '@elastic/eui';
import React from 'react';
-import { QuerySuggestion } from '../../../../../../../src/plugins/data/public';
-
-import euiStyled from '../../../../../common/eui_styled_components';
+import { QuerySuggestion } from '../../../../../../src/plugins/data/public';
+import { euiStyled } from '../../../../observability/public';
import { SuggestionItem } from './suggestion_item';
diff --git a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/suggestion_item.tsx b/x-pack/plugins/siem/public/components/autocomplete_field/suggestion_item.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/autocomplete_field/suggestion_item.tsx
rename to x-pack/plugins/siem/public/components/autocomplete_field/suggestion_item.tsx
index f99a545d558f7..0f274628ae837 100644
--- a/x-pack/legacy/plugins/siem/public/components/autocomplete_field/suggestion_item.tsx
+++ b/x-pack/plugins/siem/public/components/autocomplete_field/suggestion_item.tsx
@@ -8,8 +8,8 @@ import { EuiIcon } from '@elastic/eui';
import { transparentize } from 'polished';
import React from 'react';
import styled from 'styled-components';
-import euiStyled from '../../../../../common/eui_styled_components';
-import { QuerySuggestion } from '../../../../../../../src/plugins/data/public';
+import { euiStyled } from '../../../../observability/public';
+import { QuerySuggestion } from '../../../../../../src/plugins/data/public';
interface SuggestionItemProps {
isSelected?: boolean;
diff --git a/x-pack/legacy/plugins/siem/public/components/bytes/index.test.tsx b/x-pack/plugins/siem/public/components/bytes/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/bytes/index.test.tsx
rename to x-pack/plugins/siem/public/components/bytes/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/bytes/index.tsx b/x-pack/plugins/siem/public/components/bytes/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/bytes/index.tsx
rename to x-pack/plugins/siem/public/components/bytes/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/index.test.tsx b/x-pack/plugins/siem/public/components/certificate_fingerprint/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/index.test.tsx
rename to x-pack/plugins/siem/public/components/certificate_fingerprint/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/index.tsx b/x-pack/plugins/siem/public/components/certificate_fingerprint/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/index.tsx
rename to x-pack/plugins/siem/public/components/certificate_fingerprint/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/translations.ts b/x-pack/plugins/siem/public/components/certificate_fingerprint/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/translations.ts
rename to x-pack/plugins/siem/public/components/certificate_fingerprint/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/__snapshots__/areachart.test.tsx.snap b/x-pack/plugins/siem/public/components/charts/__snapshots__/areachart.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/__snapshots__/areachart.test.tsx.snap
rename to x-pack/plugins/siem/public/components/charts/__snapshots__/areachart.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/__snapshots__/barchart.test.tsx.snap b/x-pack/plugins/siem/public/components/charts/__snapshots__/barchart.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/__snapshots__/barchart.test.tsx.snap
rename to x-pack/plugins/siem/public/components/charts/__snapshots__/barchart.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/areachart.test.tsx b/x-pack/plugins/siem/public/components/charts/areachart.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/areachart.test.tsx
rename to x-pack/plugins/siem/public/components/charts/areachart.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/areachart.tsx b/x-pack/plugins/siem/public/components/charts/areachart.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/areachart.tsx
rename to x-pack/plugins/siem/public/components/charts/areachart.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/barchart.test.tsx b/x-pack/plugins/siem/public/components/charts/barchart.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/barchart.test.tsx
rename to x-pack/plugins/siem/public/components/charts/barchart.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/barchart.tsx b/x-pack/plugins/siem/public/components/charts/barchart.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/barchart.tsx
rename to x-pack/plugins/siem/public/components/charts/barchart.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/chart_place_holder.test.tsx b/x-pack/plugins/siem/public/components/charts/chart_place_holder.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/chart_place_holder.test.tsx
rename to x-pack/plugins/siem/public/components/charts/chart_place_holder.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/chart_place_holder.tsx b/x-pack/plugins/siem/public/components/charts/chart_place_holder.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/chart_place_holder.tsx
rename to x-pack/plugins/siem/public/components/charts/chart_place_holder.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/common.test.tsx b/x-pack/plugins/siem/public/components/charts/common.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/common.test.tsx
rename to x-pack/plugins/siem/public/components/charts/common.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/common.tsx b/x-pack/plugins/siem/public/components/charts/common.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/common.tsx
rename to x-pack/plugins/siem/public/components/charts/common.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/charts/translation.ts b/x-pack/plugins/siem/public/components/charts/translation.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/charts/translation.ts
rename to x-pack/plugins/siem/public/components/charts/translation.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/direction/direction.test.tsx b/x-pack/plugins/siem/public/components/direction/direction.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/direction/direction.test.tsx
rename to x-pack/plugins/siem/public/components/direction/direction.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/direction/index.tsx b/x-pack/plugins/siem/public/components/direction/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/direction/index.tsx
rename to x-pack/plugins/siem/public/components/direction/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/__snapshots__/drag_drop_context_wrapper.test.tsx.snap b/x-pack/plugins/siem/public/components/drag_and_drop/__snapshots__/drag_drop_context_wrapper.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/__snapshots__/drag_drop_context_wrapper.test.tsx.snap
rename to x-pack/plugins/siem/public/components/drag_and_drop/__snapshots__/drag_drop_context_wrapper.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/__snapshots__/draggable_wrapper.test.tsx.snap b/x-pack/plugins/siem/public/components/drag_and_drop/__snapshots__/draggable_wrapper.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/__snapshots__/draggable_wrapper.test.tsx.snap
rename to x-pack/plugins/siem/public/components/drag_and_drop/__snapshots__/draggable_wrapper.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/__snapshots__/droppable_wrapper.test.tsx.snap b/x-pack/plugins/siem/public/components/drag_and_drop/__snapshots__/droppable_wrapper.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/__snapshots__/droppable_wrapper.test.tsx.snap
rename to x-pack/plugins/siem/public/components/drag_and_drop/__snapshots__/droppable_wrapper.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/drag_drop_context.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/drag_drop_context.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/draggable_wrapper.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/draggable_wrapper.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/droppable_wrapper.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/droppable_wrapper.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/helpers.test.ts b/x-pack/plugins/siem/public/components/drag_and_drop/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/helpers.test.ts
rename to x-pack/plugins/siem/public/components/drag_and_drop/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/helpers.ts b/x-pack/plugins/siem/public/components/drag_and_drop/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/helpers.ts
rename to x-pack/plugins/siem/public/components/drag_and_drop/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/provider_container.tsx b/x-pack/plugins/siem/public/components/drag_and_drop/provider_container.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/drag_and_drop/provider_container.tsx
rename to x-pack/plugins/siem/public/components/drag_and_drop/provider_container.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/draggables/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/draggables/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/draggables/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/draggables/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/draggables/field_badge/index.tsx b/x-pack/plugins/siem/public/components/draggables/field_badge/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/draggables/field_badge/index.tsx
rename to x-pack/plugins/siem/public/components/draggables/field_badge/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/draggables/field_badge/translations.ts b/x-pack/plugins/siem/public/components/draggables/field_badge/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/draggables/field_badge/translations.ts
rename to x-pack/plugins/siem/public/components/draggables/field_badge/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/draggables/index.test.tsx b/x-pack/plugins/siem/public/components/draggables/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/draggables/index.test.tsx
rename to x-pack/plugins/siem/public/components/draggables/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/draggables/index.tsx b/x-pack/plugins/siem/public/components/draggables/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/draggables/index.tsx
rename to x-pack/plugins/siem/public/components/draggables/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/duration/index.test.tsx b/x-pack/plugins/siem/public/components/duration/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/duration/index.test.tsx
rename to x-pack/plugins/siem/public/components/duration/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/duration/index.tsx b/x-pack/plugins/siem/public/components/duration/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/duration/index.tsx
rename to x-pack/plugins/siem/public/components/duration/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/helpers.test.tsx b/x-pack/plugins/siem/public/components/edit_data_provider/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/edit_data_provider/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/edit_data_provider/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/helpers.tsx b/x-pack/plugins/siem/public/components/edit_data_provider/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/edit_data_provider/helpers.tsx
rename to x-pack/plugins/siem/public/components/edit_data_provider/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.test.tsx b/x-pack/plugins/siem/public/components/edit_data_provider/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.test.tsx
rename to x-pack/plugins/siem/public/components/edit_data_provider/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.tsx b/x-pack/plugins/siem/public/components/edit_data_provider/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.tsx
rename to x-pack/plugins/siem/public/components/edit_data_provider/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/translations.ts b/x-pack/plugins/siem/public/components/edit_data_provider/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/edit_data_provider/translations.ts
rename to x-pack/plugins/siem/public/components/edit_data_provider/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/__mocks__/mock.ts b/x-pack/plugins/siem/public/components/embeddables/__mocks__/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/__mocks__/mock.ts
rename to x-pack/plugins/siem/public/components/embeddables/__mocks__/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/embeddable.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/__snapshots__/embeddable.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/embeddable.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/__snapshots__/embeddable.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/embeddable_header.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/__snapshots__/embeddable_header.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/embeddable_header.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/__snapshots__/embeddable_header.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/embedded_map.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/__snapshots__/embedded_map.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/embedded_map.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/__snapshots__/embedded_map.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/index_patterns_missing_prompt.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/__snapshots__/index_patterns_missing_prompt.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/__snapshots__/index_patterns_missing_prompt.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/__snapshots__/index_patterns_missing_prompt.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embeddable.test.tsx b/x-pack/plugins/siem/public/components/embeddables/embeddable.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embeddable.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embeddable.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embeddable.tsx b/x-pack/plugins/siem/public/components/embeddables/embeddable.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embeddable.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embeddable.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embeddable_header.test.tsx b/x-pack/plugins/siem/public/components/embeddables/embeddable_header.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embeddable_header.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embeddable_header.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embeddable_header.tsx b/x-pack/plugins/siem/public/components/embeddables/embeddable_header.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embeddable_header.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embeddable_header.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map.test.tsx b/x-pack/plugins/siem/public/components/embeddables/embedded_map.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embedded_map.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map.tsx b/x-pack/plugins/siem/public/components/embeddables/embedded_map.tsx
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embedded_map.tsx
index d0b1d8ffcb5ae..3cc4eb3ad5d1b 100644
--- a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map.tsx
+++ b/x-pack/plugins/siem/public/components/embeddables/embedded_map.tsx
@@ -9,8 +9,8 @@ import React, { useEffect, useState } from 'react';
import { createPortalNode, InPortal } from 'react-reverse-portal';
import styled, { css } from 'styled-components';
-import { EmbeddablePanel } from '../../../../../../../src/legacy/core_plugins/embeddable_api/public/np_ready/public';
-import { start } from '../../../../../../../src/legacy/core_plugins/embeddable_api/public/np_ready/public/legacy';
+import { EmbeddablePanel } from '../../../../../../src/plugins/embeddable/public';
+import { getSavedObjectFinder } from '../../../../../../src/plugins/saved_objects/public';
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
import { getIndexPatternTitleIdMapping } from '../../hooks/api/helpers';
import { useIndexPatterns } from '../../hooks/use_index_patterns';
@@ -23,9 +23,8 @@ import { IndexPatternsMissingPrompt } from './index_patterns_missing_prompt';
import { MapToolTip } from './map_tool_tip/map_tool_tip';
import * as i18n from './translations';
import { MapEmbeddable, SetQuery } from './types';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
+import { Query, Filter } from '../../../../../../src/plugins/data/public';
import { useKibana, useUiSetting$ } from '../../lib/kibana';
-import { getSavedObjectFinder } from '../../../../../../../src/plugins/saved_objects/public';
interface EmbeddableMapProps {
maintainRatio?: boolean;
@@ -197,8 +196,8 @@ export const EmbeddedMapComponent = ({
data-test-subj="embeddable-panel"
embeddable={embeddable}
getActions={services.uiActions.getTriggerCompatibleActions}
- getEmbeddableFactory={start.getEmbeddableFactory}
- getAllEmbeddableFactories={start.getEmbeddableFactories}
+ getEmbeddableFactory={services.embeddable.getEmbeddableFactory}
+ getAllEmbeddableFactories={services.embeddable.getEmbeddableFactories}
notifications={services.notifications}
overlays={services.overlays}
inspector={services.inspector}
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map_helpers.test.tsx b/x-pack/plugins/siem/public/components/embeddables/embedded_map_helpers.test.tsx
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map_helpers.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embedded_map_helpers.test.tsx
index 0ffb13cd66028..9687f918d8480 100644
--- a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map_helpers.test.tsx
+++ b/x-pack/plugins/siem/public/components/embeddables/embedded_map_helpers.test.tsx
@@ -4,8 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
+import { embeddablePluginMock } from '../../../../../../src/plugins/embeddable/public/mocks';
import { createEmbeddable, findMatchingIndexPatterns } from './embedded_map_helpers';
-import { createUiNewPlatformMock } from 'ui/new_platform/__mocks__/helpers';
import { createPortalNode } from 'react-reverse-portal';
import {
mockAPMIndexPattern,
@@ -16,10 +16,9 @@ import {
mockGlobIndexPattern,
} from './__mocks__/mock';
-jest.mock('ui/new_platform');
+const mockEmbeddable = embeddablePluginMock.createStartContract();
-const { npStart } = createUiNewPlatformMock();
-npStart.plugins.embeddable.getEmbeddableFactory = jest.fn().mockImplementation(() => ({
+mockEmbeddable.getEmbeddableFactory = jest.fn().mockImplementation(() => ({
createFromState: () => ({
reload: jest.fn(),
}),
@@ -37,7 +36,7 @@ describe('embedded_map_helpers', () => {
0,
setQueryMock,
createPortalNode(),
- npStart.plugins.embeddable
+ mockEmbeddable
);
expect(setQueryMock).toHaveBeenCalledTimes(1);
});
@@ -52,7 +51,7 @@ describe('embedded_map_helpers', () => {
0,
setQueryMock,
createPortalNode(),
- npStart.plugins.embeddable
+ mockEmbeddable
);
expect(setQueryMock.mock.calls[0][0].refetch).not.toBe(embeddable.reload);
setQueryMock.mock.results[0].value();
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map_helpers.tsx b/x-pack/plugins/siem/public/components/embeddables/embedded_map_helpers.tsx
similarity index 91%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map_helpers.tsx
rename to x-pack/plugins/siem/public/components/embeddables/embedded_map_helpers.tsx
index 0c93cd51abd79..4f5f23de69956 100644
--- a/x-pack/legacy/plugins/siem/public/components/embeddables/embedded_map_helpers.tsx
+++ b/x-pack/plugins/siem/public/components/embeddables/embedded_map_helpers.tsx
@@ -8,7 +8,8 @@ import uuid from 'uuid';
import React from 'react';
import { OutPortal, PortalNode } from 'react-reverse-portal';
import minimatch from 'minimatch';
-import { ViewMode } from '../../../../../../../src/legacy/core_plugins/embeddable_api/public/np_ready/public';
+import { ViewMode } from '../../../../../../src/plugins/embeddable/public';
+import { MAP_SAVED_OBJECT_TYPE } from '../../../../../legacy/plugins/maps/common/constants';
import {
IndexPatternMapping,
MapEmbeddable,
@@ -17,10 +18,8 @@ import {
EmbeddableApi,
} from './types';
import { getLayerList } from './map_config';
-// @ts-ignore Missing type defs as maps moves to Typescript
-import { MAP_SAVED_OBJECT_TYPE } from '../../../../maps/common/constants';
import * as i18n from './translations';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
+import { Query, Filter } from '../../../../../../src/plugins/data/public';
import { IndexPatternSavedObject } from '../../hooks/types';
/**
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.test.tsx b/x-pack/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.tsx b/x-pack/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.tsx
rename to x-pack/plugins/siem/public/components/embeddables/index_patterns_missing_prompt.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_config.test.ts b/x-pack/plugins/siem/public/components/embeddables/map_config.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_config.test.ts
rename to x-pack/plugins/siem/public/components/embeddables/map_config.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_config.ts b/x-pack/plugins/siem/public/components/embeddables/map_config.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_config.ts
rename to x-pack/plugins/siem/public/components/embeddables/map_config.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/line_tool_tip_content.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/line_tool_tip_content.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/line_tool_tip_content.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/line_tool_tip_content.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/map_tool_tip.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/map_tool_tip.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/map_tool_tip.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/map_tool_tip.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/point_tool_tip_content.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/point_tool_tip_content.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/point_tool_tip_content.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/point_tool_tip_content.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/tooltip_footer.test.tsx.snap b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/tooltip_footer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/tooltip_footer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/__snapshots__/tooltip_footer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.test.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/line_tool_tip_content.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.test.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/map_tool_tip.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.test.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/point_tool_tip_content.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.test.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.test.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.tsx b/x-pack/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.tsx
rename to x-pack/plugins/siem/public/components/embeddables/map_tool_tip/tooltip_footer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/translations.ts b/x-pack/plugins/siem/public/components/embeddables/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/translations.ts
rename to x-pack/plugins/siem/public/components/embeddables/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/types.ts b/x-pack/plugins/siem/public/components/embeddables/types.ts
similarity index 90%
rename from x-pack/legacy/plugins/siem/public/components/embeddables/types.ts
rename to x-pack/plugins/siem/public/components/embeddables/types.ts
index 812d327ce4488..dfeb3a6e401a0 100644
--- a/x-pack/legacy/plugins/siem/public/components/embeddables/types.ts
+++ b/x-pack/plugins/siem/public/components/embeddables/types.ts
@@ -4,15 +4,15 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { TimeRange } from 'src/plugins/data/public';
+import { Query, Filter, TimeRange } from '../../../../../../src/plugins/data/public';
import {
EmbeddableInput,
EmbeddableOutput,
IEmbeddable,
EmbeddableFactory,
-} from '../../../../../../../src/legacy/core_plugins/embeddable_api/public/np_ready/public';
+} from '../../../../../../src/plugins/embeddable/public';
+
import { inputsModel } from '../../store/inputs';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
export interface MapEmbeddableInput extends EmbeddableInput {
filters: Filter[];
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_page/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/empty_page/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_page/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/empty_page/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_page/index.test.tsx b/x-pack/plugins/siem/public/components/empty_page/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_page/index.test.tsx
rename to x-pack/plugins/siem/public/components/empty_page/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_page/index.tsx b/x-pack/plugins/siem/public/components/empty_page/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_page/index.tsx
rename to x-pack/plugins/siem/public/components/empty_page/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_value/__snapshots__/empty_value.test.tsx.snap b/x-pack/plugins/siem/public/components/empty_value/__snapshots__/empty_value.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_value/__snapshots__/empty_value.test.tsx.snap
rename to x-pack/plugins/siem/public/components/empty_value/__snapshots__/empty_value.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_value/empty_value.test.tsx b/x-pack/plugins/siem/public/components/empty_value/empty_value.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_value/empty_value.test.tsx
rename to x-pack/plugins/siem/public/components/empty_value/empty_value.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_value/index.tsx b/x-pack/plugins/siem/public/components/empty_value/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_value/index.tsx
rename to x-pack/plugins/siem/public/components/empty_value/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/empty_value/translations.ts b/x-pack/plugins/siem/public/components/empty_value/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/empty_value/translations.ts
rename to x-pack/plugins/siem/public/components/empty_value/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/error_toast_dispatcher/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/error_toast_dispatcher/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/error_toast_dispatcher/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/error_toast_dispatcher/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/error_toast_dispatcher/index.test.tsx b/x-pack/plugins/siem/public/components/error_toast_dispatcher/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/error_toast_dispatcher/index.test.tsx
rename to x-pack/plugins/siem/public/components/error_toast_dispatcher/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/error_toast_dispatcher/index.tsx b/x-pack/plugins/siem/public/components/error_toast_dispatcher/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/error_toast_dispatcher/index.tsx
rename to x-pack/plugins/siem/public/components/error_toast_dispatcher/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/__snapshots__/event_details.test.tsx.snap b/x-pack/plugins/siem/public/components/event_details/__snapshots__/event_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/__snapshots__/event_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/event_details/__snapshots__/event_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/__snapshots__/json_view.test.tsx.snap b/x-pack/plugins/siem/public/components/event_details/__snapshots__/json_view.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/__snapshots__/json_view.test.tsx.snap
rename to x-pack/plugins/siem/public/components/event_details/__snapshots__/json_view.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/columns.tsx b/x-pack/plugins/siem/public/components/event_details/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/columns.tsx
rename to x-pack/plugins/siem/public/components/event_details/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/event_details.test.tsx b/x-pack/plugins/siem/public/components/event_details/event_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/event_details.test.tsx
rename to x-pack/plugins/siem/public/components/event_details/event_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/event_details.tsx b/x-pack/plugins/siem/public/components/event_details/event_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/event_details.tsx
rename to x-pack/plugins/siem/public/components/event_details/event_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.test.tsx b/x-pack/plugins/siem/public/components/event_details/event_fields_browser.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.test.tsx
rename to x-pack/plugins/siem/public/components/event_details/event_fields_browser.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx b/x-pack/plugins/siem/public/components/event_details/event_fields_browser.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx
rename to x-pack/plugins/siem/public/components/event_details/event_fields_browser.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/event_id.ts b/x-pack/plugins/siem/public/components/event_details/event_id.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/event_id.ts
rename to x-pack/plugins/siem/public/components/event_details/event_id.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/helpers.test.tsx b/x-pack/plugins/siem/public/components/event_details/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/event_details/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/helpers.tsx b/x-pack/plugins/siem/public/components/event_details/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/helpers.tsx
rename to x-pack/plugins/siem/public/components/event_details/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/json_view.test.tsx b/x-pack/plugins/siem/public/components/event_details/json_view.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/json_view.test.tsx
rename to x-pack/plugins/siem/public/components/event_details/json_view.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/json_view.tsx b/x-pack/plugins/siem/public/components/event_details/json_view.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/json_view.tsx
rename to x-pack/plugins/siem/public/components/event_details/json_view.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/stateful_event_details.tsx b/x-pack/plugins/siem/public/components/event_details/stateful_event_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/stateful_event_details.tsx
rename to x-pack/plugins/siem/public/components/event_details/stateful_event_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/translations.ts b/x-pack/plugins/siem/public/components/event_details/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/translations.ts
rename to x-pack/plugins/siem/public/components/event_details/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/types.ts b/x-pack/plugins/siem/public/components/event_details/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/event_details/types.ts
rename to x-pack/plugins/siem/public/components/event_details/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/default_headers.tsx b/x-pack/plugins/siem/public/components/events_viewer/default_headers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/default_headers.tsx
rename to x-pack/plugins/siem/public/components/events_viewer/default_headers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/default_model.tsx b/x-pack/plugins/siem/public/components/events_viewer/default_model.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/default_model.tsx
rename to x-pack/plugins/siem/public/components/events_viewer/default_model.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.test.tsx b/x-pack/plugins/siem/public/components/events_viewer/events_viewer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.test.tsx
rename to x-pack/plugins/siem/public/components/events_viewer/events_viewer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.tsx b/x-pack/plugins/siem/public/components/events_viewer/events_viewer.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.tsx
rename to x-pack/plugins/siem/public/components/events_viewer/events_viewer.tsx
index a913186d9ad3b..096e8bd2c6b31 100644
--- a/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.tsx
+++ b/x-pack/plugins/siem/public/components/events_viewer/events_viewer.tsx
@@ -33,7 +33,7 @@ import {
esQuery,
IIndexPattern,
Query,
-} from '../../../../../../../src/plugins/data/public';
+} from '../../../../../../src/plugins/data/public';
import { inputsModel } from '../../store';
const DEFAULT_EVENTS_VIEWER_HEIGHT = 500;
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/index.test.tsx b/x-pack/plugins/siem/public/components/events_viewer/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/index.test.tsx
rename to x-pack/plugins/siem/public/components/events_viewer/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/index.tsx b/x-pack/plugins/siem/public/components/events_viewer/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/index.tsx
rename to x-pack/plugins/siem/public/components/events_viewer/index.tsx
index 9b31be40dd955..a36e1326b84e8 100644
--- a/x-pack/legacy/plugins/siem/public/components/events_viewer/index.tsx
+++ b/x-pack/plugins/siem/public/components/events_viewer/index.tsx
@@ -16,7 +16,7 @@ import {
TimelineModel,
} from '../../store/timeline/model';
import { OnChangeItemsPerPage } from '../timeline/events';
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
import { useUiSetting } from '../../lib/kibana';
import { EventsViewer } from './events_viewer';
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/mock.ts b/x-pack/plugins/siem/public/components/events_viewer/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/mock.ts
rename to x-pack/plugins/siem/public/components/events_viewer/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/translations.ts b/x-pack/plugins/siem/public/components/events_viewer/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/events_viewer/translations.ts
rename to x-pack/plugins/siem/public/components/events_viewer/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/external_link_icon/index.test.tsx b/x-pack/plugins/siem/public/components/external_link_icon/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/external_link_icon/index.test.tsx
rename to x-pack/plugins/siem/public/components/external_link_icon/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/external_link_icon/index.tsx b/x-pack/plugins/siem/public/components/external_link_icon/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/external_link_icon/index.tsx
rename to x-pack/plugins/siem/public/components/external_link_icon/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/field_renderers/__snapshots__/field_renderers.test.tsx.snap b/x-pack/plugins/siem/public/components/field_renderers/__snapshots__/field_renderers.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/field_renderers/__snapshots__/field_renderers.test.tsx.snap
rename to x-pack/plugins/siem/public/components/field_renderers/__snapshots__/field_renderers.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/field_renderers/field_renderers.test.tsx b/x-pack/plugins/siem/public/components/field_renderers/field_renderers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/field_renderers/field_renderers.test.tsx
rename to x-pack/plugins/siem/public/components/field_renderers/field_renderers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/field_renderers/field_renderers.tsx b/x-pack/plugins/siem/public/components/field_renderers/field_renderers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/field_renderers/field_renderers.tsx
rename to x-pack/plugins/siem/public/components/field_renderers/field_renderers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/categories_pane.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/categories_pane.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/categories_pane.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/categories_pane.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/categories_pane.tsx b/x-pack/plugins/siem/public/components/fields_browser/categories_pane.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/categories_pane.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/categories_pane.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/category.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/category.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/category.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/category.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/category.tsx b/x-pack/plugins/siem/public/components/fields_browser/category.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/category.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/category.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/category_columns.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/category_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/category_columns.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/category_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/category_columns.tsx b/x-pack/plugins/siem/public/components/fields_browser/category_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/category_columns.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/category_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/category_title.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/category_title.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/category_title.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/category_title.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/category_title.tsx b/x-pack/plugins/siem/public/components/fields_browser/category_title.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/category_title.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/category_title.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/field_browser.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/field_browser.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/field_browser.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/field_browser.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/field_browser.tsx b/x-pack/plugins/siem/public/components/fields_browser/field_browser.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/field_browser.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/field_browser.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/field_items.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/field_items.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/field_items.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/field_items.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/field_items.tsx b/x-pack/plugins/siem/public/components/fields_browser/field_items.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/field_items.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/field_items.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/field_name.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/field_name.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/field_name.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/field_name.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/field_name.tsx b/x-pack/plugins/siem/public/components/fields_browser/field_name.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/field_name.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/field_name.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/fields_pane.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/fields_pane.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/fields_pane.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/fields_pane.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/fields_pane.tsx b/x-pack/plugins/siem/public/components/fields_browser/fields_pane.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/fields_pane.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/fields_pane.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/header.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/header.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/header.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/header.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/header.tsx b/x-pack/plugins/siem/public/components/fields_browser/header.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/header.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/header.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/helpers.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/helpers.tsx b/x-pack/plugins/siem/public/components/fields_browser/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/helpers.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/index.test.tsx b/x-pack/plugins/siem/public/components/fields_browser/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/index.test.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/index.tsx b/x-pack/plugins/siem/public/components/fields_browser/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/index.tsx
rename to x-pack/plugins/siem/public/components/fields_browser/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/translations.ts b/x-pack/plugins/siem/public/components/fields_browser/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/translations.ts
rename to x-pack/plugins/siem/public/components/fields_browser/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/fields_browser/types.ts b/x-pack/plugins/siem/public/components/fields_browser/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/fields_browser/types.ts
rename to x-pack/plugins/siem/public/components/fields_browser/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/filter_popover/index.tsx b/x-pack/plugins/siem/public/components/filter_popover/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/filter_popover/index.tsx
rename to x-pack/plugins/siem/public/components/filter_popover/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/filters_global/__snapshots__/filters_global.test.tsx.snap b/x-pack/plugins/siem/public/components/filters_global/__snapshots__/filters_global.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/filters_global/__snapshots__/filters_global.test.tsx.snap
rename to x-pack/plugins/siem/public/components/filters_global/__snapshots__/filters_global.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/filters_global/filters_global.test.tsx b/x-pack/plugins/siem/public/components/filters_global/filters_global.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/filters_global/filters_global.test.tsx
rename to x-pack/plugins/siem/public/components/filters_global/filters_global.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/filters_global/filters_global.tsx b/x-pack/plugins/siem/public/components/filters_global/filters_global.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/filters_global/filters_global.tsx
rename to x-pack/plugins/siem/public/components/filters_global/filters_global.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/filters_global/index.tsx b/x-pack/plugins/siem/public/components/filters_global/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/filters_global/index.tsx
rename to x-pack/plugins/siem/public/components/filters_global/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/__snapshots__/flow_direction_select.test.tsx.snap b/x-pack/plugins/siem/public/components/flow_controls/__snapshots__/flow_direction_select.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/__snapshots__/flow_direction_select.test.tsx.snap
rename to x-pack/plugins/siem/public/components/flow_controls/__snapshots__/flow_direction_select.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/__snapshots__/flow_target_select.test.tsx.snap b/x-pack/plugins/siem/public/components/flow_controls/__snapshots__/flow_target_select.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/__snapshots__/flow_target_select.test.tsx.snap
rename to x-pack/plugins/siem/public/components/flow_controls/__snapshots__/flow_target_select.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/flow_direction_select.test.tsx b/x-pack/plugins/siem/public/components/flow_controls/flow_direction_select.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/flow_direction_select.test.tsx
rename to x-pack/plugins/siem/public/components/flow_controls/flow_direction_select.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/flow_direction_select.tsx b/x-pack/plugins/siem/public/components/flow_controls/flow_direction_select.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/flow_direction_select.tsx
rename to x-pack/plugins/siem/public/components/flow_controls/flow_direction_select.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/flow_target_select.test.tsx b/x-pack/plugins/siem/public/components/flow_controls/flow_target_select.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/flow_target_select.test.tsx
rename to x-pack/plugins/siem/public/components/flow_controls/flow_target_select.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/flow_target_select.tsx b/x-pack/plugins/siem/public/components/flow_controls/flow_target_select.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/flow_target_select.tsx
rename to x-pack/plugins/siem/public/components/flow_controls/flow_target_select.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flow_controls/translations.ts b/x-pack/plugins/siem/public/components/flow_controls/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flow_controls/translations.ts
rename to x-pack/plugins/siem/public/components/flow_controls/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/flyout/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/flyout/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/button/index.tsx b/x-pack/plugins/siem/public/components/flyout/button/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/button/index.tsx
rename to x-pack/plugins/siem/public/components/flyout/button/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/button/translations.ts b/x-pack/plugins/siem/public/components/flyout/button/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/button/translations.ts
rename to x-pack/plugins/siem/public/components/flyout/button/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/header/index.tsx b/x-pack/plugins/siem/public/components/flyout/header/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/header/index.tsx
rename to x-pack/plugins/siem/public/components/flyout/header/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/index.test.tsx b/x-pack/plugins/siem/public/components/flyout/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/index.test.tsx
rename to x-pack/plugins/siem/public/components/flyout/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/index.tsx b/x-pack/plugins/siem/public/components/flyout/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/index.tsx
rename to x-pack/plugins/siem/public/components/flyout/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/pane/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/flyout/pane/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/pane/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/flyout/pane/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/pane/index.test.tsx b/x-pack/plugins/siem/public/components/flyout/pane/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/pane/index.test.tsx
rename to x-pack/plugins/siem/public/components/flyout/pane/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/pane/index.tsx b/x-pack/plugins/siem/public/components/flyout/pane/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/pane/index.tsx
rename to x-pack/plugins/siem/public/components/flyout/pane/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/pane/timeline_resize_handle.tsx b/x-pack/plugins/siem/public/components/flyout/pane/timeline_resize_handle.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/pane/timeline_resize_handle.tsx
rename to x-pack/plugins/siem/public/components/flyout/pane/timeline_resize_handle.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/pane/translations.ts b/x-pack/plugins/siem/public/components/flyout/pane/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/flyout/pane/translations.ts
rename to x-pack/plugins/siem/public/components/flyout/pane/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_bytes/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/formatted_bytes/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_bytes/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/formatted_bytes/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_bytes/index.test.tsx b/x-pack/plugins/siem/public/components/formatted_bytes/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_bytes/index.test.tsx
rename to x-pack/plugins/siem/public/components/formatted_bytes/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_bytes/index.tsx b/x-pack/plugins/siem/public/components/formatted_bytes/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_bytes/index.tsx
rename to x-pack/plugins/siem/public/components/formatted_bytes/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_date/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/formatted_date/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_date/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/formatted_date/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_date/index.test.tsx b/x-pack/plugins/siem/public/components/formatted_date/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_date/index.test.tsx
rename to x-pack/plugins/siem/public/components/formatted_date/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_date/index.tsx b/x-pack/plugins/siem/public/components/formatted_date/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_date/index.tsx
rename to x-pack/plugins/siem/public/components/formatted_date/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_date/maybe_date.test.ts b/x-pack/plugins/siem/public/components/formatted_date/maybe_date.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_date/maybe_date.test.ts
rename to x-pack/plugins/siem/public/components/formatted_date/maybe_date.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_date/maybe_date.ts b/x-pack/plugins/siem/public/components/formatted_date/maybe_date.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_date/maybe_date.ts
rename to x-pack/plugins/siem/public/components/formatted_date/maybe_date.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_duration/helpers.test.ts b/x-pack/plugins/siem/public/components/formatted_duration/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_duration/helpers.test.ts
rename to x-pack/plugins/siem/public/components/formatted_duration/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_duration/helpers.tsx b/x-pack/plugins/siem/public/components/formatted_duration/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_duration/helpers.tsx
rename to x-pack/plugins/siem/public/components/formatted_duration/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_duration/index.tsx b/x-pack/plugins/siem/public/components/formatted_duration/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_duration/index.tsx
rename to x-pack/plugins/siem/public/components/formatted_duration/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_duration/tooltip/index.tsx b/x-pack/plugins/siem/public/components/formatted_duration/tooltip/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_duration/tooltip/index.tsx
rename to x-pack/plugins/siem/public/components/formatted_duration/tooltip/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_duration/translations.ts b/x-pack/plugins/siem/public/components/formatted_duration/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_duration/translations.ts
rename to x-pack/plugins/siem/public/components/formatted_duration/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/formatted_ip/index.tsx b/x-pack/plugins/siem/public/components/formatted_ip/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/formatted_ip/index.tsx
rename to x-pack/plugins/siem/public/components/formatted_ip/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_global/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/header_global/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_global/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/header_global/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/header_global/index.test.tsx b/x-pack/plugins/siem/public/components/header_global/index.test.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/header_global/index.test.tsx
rename to x-pack/plugins/siem/public/components/header_global/index.test.tsx
index 098de39bbfef5..51e55a6284110 100644
--- a/x-pack/legacy/plugins/siem/public/components/header_global/index.test.tsx
+++ b/x-pack/plugins/siem/public/components/header_global/index.test.tsx
@@ -10,8 +10,6 @@ import React from 'react';
import '../../mock/match_media';
import { HeaderGlobal } from './index';
-jest.mock('ui/new_platform');
-
// Test will fail because we will to need to mock some core services to make the test work
// For now let's forget about SiemSearchBar
jest.mock('../search_bar', () => ({
diff --git a/x-pack/legacy/plugins/siem/public/components/header_global/index.tsx b/x-pack/plugins/siem/public/components/header_global/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_global/index.tsx
rename to x-pack/plugins/siem/public/components/header_global/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_global/translations.ts b/x-pack/plugins/siem/public/components/header_global/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_global/translations.ts
rename to x-pack/plugins/siem/public/components/header_global/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/__snapshots__/editable_title.test.tsx.snap b/x-pack/plugins/siem/public/components/header_page/__snapshots__/editable_title.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/__snapshots__/editable_title.test.tsx.snap
rename to x-pack/plugins/siem/public/components/header_page/__snapshots__/editable_title.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/header_page/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/header_page/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/__snapshots__/title.test.tsx.snap b/x-pack/plugins/siem/public/components/header_page/__snapshots__/title.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/__snapshots__/title.test.tsx.snap
rename to x-pack/plugins/siem/public/components/header_page/__snapshots__/title.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/editable_title.test.tsx b/x-pack/plugins/siem/public/components/header_page/editable_title.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/editable_title.test.tsx
rename to x-pack/plugins/siem/public/components/header_page/editable_title.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/editable_title.tsx b/x-pack/plugins/siem/public/components/header_page/editable_title.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/editable_title.tsx
rename to x-pack/plugins/siem/public/components/header_page/editable_title.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/index.test.tsx b/x-pack/plugins/siem/public/components/header_page/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/index.test.tsx
rename to x-pack/plugins/siem/public/components/header_page/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/index.tsx b/x-pack/plugins/siem/public/components/header_page/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/index.tsx
rename to x-pack/plugins/siem/public/components/header_page/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/title.test.tsx b/x-pack/plugins/siem/public/components/header_page/title.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/title.test.tsx
rename to x-pack/plugins/siem/public/components/header_page/title.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/title.tsx b/x-pack/plugins/siem/public/components/header_page/title.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/title.tsx
rename to x-pack/plugins/siem/public/components/header_page/title.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/translations.ts b/x-pack/plugins/siem/public/components/header_page/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/translations.ts
rename to x-pack/plugins/siem/public/components/header_page/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/header_page/types.ts b/x-pack/plugins/siem/public/components/header_page/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_page/types.ts
rename to x-pack/plugins/siem/public/components/header_page/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/header_section/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/header_section/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_section/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/header_section/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/header_section/index.test.tsx b/x-pack/plugins/siem/public/components/header_section/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_section/index.test.tsx
rename to x-pack/plugins/siem/public/components/header_section/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/header_section/index.tsx b/x-pack/plugins/siem/public/components/header_section/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/header_section/index.tsx
rename to x-pack/plugins/siem/public/components/header_section/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/help_menu/index.tsx b/x-pack/plugins/siem/public/components/help_menu/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/help_menu/index.tsx
rename to x-pack/plugins/siem/public/components/help_menu/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/inspect/index.test.tsx b/x-pack/plugins/siem/public/components/inspect/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/inspect/index.test.tsx
rename to x-pack/plugins/siem/public/components/inspect/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/inspect/index.tsx b/x-pack/plugins/siem/public/components/inspect/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/inspect/index.tsx
rename to x-pack/plugins/siem/public/components/inspect/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/inspect/modal.test.tsx b/x-pack/plugins/siem/public/components/inspect/modal.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/inspect/modal.test.tsx
rename to x-pack/plugins/siem/public/components/inspect/modal.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/inspect/modal.tsx b/x-pack/plugins/siem/public/components/inspect/modal.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/inspect/modal.tsx
rename to x-pack/plugins/siem/public/components/inspect/modal.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/inspect/translations.ts b/x-pack/plugins/siem/public/components/inspect/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/inspect/translations.ts
rename to x-pack/plugins/siem/public/components/inspect/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ip/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/ip/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ip/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ip/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ip/index.test.tsx b/x-pack/plugins/siem/public/components/ip/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ip/index.test.tsx
rename to x-pack/plugins/siem/public/components/ip/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ip/index.tsx b/x-pack/plugins/siem/public/components/ip/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ip/index.tsx
rename to x-pack/plugins/siem/public/components/ip/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ja3_fingerprint/index.test.tsx b/x-pack/plugins/siem/public/components/ja3_fingerprint/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ja3_fingerprint/index.test.tsx
rename to x-pack/plugins/siem/public/components/ja3_fingerprint/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ja3_fingerprint/index.tsx b/x-pack/plugins/siem/public/components/ja3_fingerprint/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ja3_fingerprint/index.tsx
rename to x-pack/plugins/siem/public/components/ja3_fingerprint/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ja3_fingerprint/translations.ts b/x-pack/plugins/siem/public/components/ja3_fingerprint/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ja3_fingerprint/translations.ts
rename to x-pack/plugins/siem/public/components/ja3_fingerprint/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx b/x-pack/plugins/siem/public/components/last_event_time/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx
rename to x-pack/plugins/siem/public/components/last_event_time/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/last_event_time/index.tsx b/x-pack/plugins/siem/public/components/last_event_time/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/last_event_time/index.tsx
rename to x-pack/plugins/siem/public/components/last_event_time/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/lazy_accordion/index.tsx b/x-pack/plugins/siem/public/components/lazy_accordion/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/lazy_accordion/index.tsx
rename to x-pack/plugins/siem/public/components/lazy_accordion/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_icon/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/link_icon/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_icon/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/link_icon/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/link_icon/index.test.tsx b/x-pack/plugins/siem/public/components/link_icon/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_icon/index.test.tsx
rename to x-pack/plugins/siem/public/components/link_icon/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_icon/index.tsx b/x-pack/plugins/siem/public/components/link_icon/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_icon/index.tsx
rename to x-pack/plugins/siem/public/components/link_icon/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/index.ts b/x-pack/plugins/siem/public/components/link_to/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/index.ts
rename to x-pack/plugins/siem/public/components/link_to/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/link_to.tsx b/x-pack/plugins/siem/public/components/link_to/link_to.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/link_to.tsx
rename to x-pack/plugins/siem/public/components/link_to/link_to.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_case.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_to_case.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_case.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_to_case.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_detection_engine.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_to_detection_engine.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_detection_engine.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_to_detection_engine.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_hosts.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_to_hosts.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_hosts.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_to_hosts.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_network.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_to_network.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_network.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_to_network.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_overview.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_to_overview.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_overview.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_to_overview.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_timelines.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_to_timelines.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_to_timelines.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_to_timelines.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/link_to/redirect_wrapper.tsx b/x-pack/plugins/siem/public/components/link_to/redirect_wrapper.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/link_to/redirect_wrapper.tsx
rename to x-pack/plugins/siem/public/components/link_to/redirect_wrapper.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/links/index.test.tsx b/x-pack/plugins/siem/public/components/links/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/links/index.test.tsx
rename to x-pack/plugins/siem/public/components/links/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/links/index.tsx b/x-pack/plugins/siem/public/components/links/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/links/index.tsx
rename to x-pack/plugins/siem/public/components/links/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/loader/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/loader/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/loader/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/loader/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/loader/index.test.tsx b/x-pack/plugins/siem/public/components/loader/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/loader/index.test.tsx
rename to x-pack/plugins/siem/public/components/loader/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/loader/index.tsx b/x-pack/plugins/siem/public/components/loader/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/loader/index.tsx
rename to x-pack/plugins/siem/public/components/loader/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/loading/index.tsx b/x-pack/plugins/siem/public/components/loading/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/loading/index.tsx
rename to x-pack/plugins/siem/public/components/loading/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/localized_date_tooltip/index.test.tsx b/x-pack/plugins/siem/public/components/localized_date_tooltip/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/localized_date_tooltip/index.test.tsx
rename to x-pack/plugins/siem/public/components/localized_date_tooltip/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/localized_date_tooltip/index.tsx b/x-pack/plugins/siem/public/components/localized_date_tooltip/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/localized_date_tooltip/index.tsx
rename to x-pack/plugins/siem/public/components/localized_date_tooltip/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/markdown/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/markdown/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/__snapshots__/markdown_hint.test.tsx.snap b/x-pack/plugins/siem/public/components/markdown/__snapshots__/markdown_hint.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/__snapshots__/markdown_hint.test.tsx.snap
rename to x-pack/plugins/siem/public/components/markdown/__snapshots__/markdown_hint.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/index.test.tsx b/x-pack/plugins/siem/public/components/markdown/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/index.test.tsx
rename to x-pack/plugins/siem/public/components/markdown/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/index.tsx b/x-pack/plugins/siem/public/components/markdown/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/index.tsx
rename to x-pack/plugins/siem/public/components/markdown/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/markdown_hint.test.tsx b/x-pack/plugins/siem/public/components/markdown/markdown_hint.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/markdown_hint.test.tsx
rename to x-pack/plugins/siem/public/components/markdown/markdown_hint.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/markdown_hint.tsx b/x-pack/plugins/siem/public/components/markdown/markdown_hint.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/markdown_hint.tsx
rename to x-pack/plugins/siem/public/components/markdown/markdown_hint.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown/translations.ts b/x-pack/plugins/siem/public/components/markdown/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown/translations.ts
rename to x-pack/plugins/siem/public/components/markdown/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown_editor/constants.ts b/x-pack/plugins/siem/public/components/markdown_editor/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown_editor/constants.ts
rename to x-pack/plugins/siem/public/components/markdown_editor/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown_editor/form.tsx b/x-pack/plugins/siem/public/components/markdown_editor/form.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown_editor/form.tsx
rename to x-pack/plugins/siem/public/components/markdown_editor/form.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown_editor/index.tsx b/x-pack/plugins/siem/public/components/markdown_editor/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown_editor/index.tsx
rename to x-pack/plugins/siem/public/components/markdown_editor/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/markdown_editor/translations.ts b/x-pack/plugins/siem/public/components/markdown_editor/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/markdown_editor/translations.ts
rename to x-pack/plugins/siem/public/components/markdown_editor/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/matrix_histogram/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/matrix_histogram/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.test.tsx b/x-pack/plugins/siem/public/components/matrix_histogram/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.test.tsx
rename to x-pack/plugins/siem/public/components/matrix_histogram/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.tsx b/x-pack/plugins/siem/public/components/matrix_histogram/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.tsx
rename to x-pack/plugins/siem/public/components/matrix_histogram/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/matrix_loader.tsx b/x-pack/plugins/siem/public/components/matrix_histogram/matrix_loader.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/matrix_loader.tsx
rename to x-pack/plugins/siem/public/components/matrix_histogram/matrix_loader.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/translations.ts b/x-pack/plugins/siem/public/components/matrix_histogram/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/translations.ts
rename to x-pack/plugins/siem/public/components/matrix_histogram/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/types.ts b/x-pack/plugins/siem/public/components/matrix_histogram/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/types.ts
rename to x-pack/plugins/siem/public/components/matrix_histogram/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/utils.test.ts b/x-pack/plugins/siem/public/components/matrix_histogram/utils.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/utils.test.ts
rename to x-pack/plugins/siem/public/components/matrix_histogram/utils.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/matrix_histogram/utils.ts b/x-pack/plugins/siem/public/components/matrix_histogram/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/matrix_histogram/utils.ts
rename to x-pack/plugins/siem/public/components/matrix_histogram/utils.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/__snapshots__/entity_draggable.test.tsx.snap b/x-pack/plugins/siem/public/components/ml/__snapshots__/entity_draggable.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/__snapshots__/entity_draggable.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml/__snapshots__/entity_draggable.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/anomaly/anomaly_table_provider.tsx b/x-pack/plugins/siem/public/components/ml/anomaly/anomaly_table_provider.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/anomaly/anomaly_table_provider.tsx
rename to x-pack/plugins/siem/public/components/ml/anomaly/anomaly_table_provider.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.test.ts b/x-pack/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.test.ts
rename to x-pack/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.ts b/x-pack/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.ts
rename to x-pack/plugins/siem/public/components/ml/anomaly/get_interval_from_anomalies.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/anomaly/translations.ts b/x-pack/plugins/siem/public/components/ml/anomaly/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/anomaly/translations.ts
rename to x-pack/plugins/siem/public/components/ml/anomaly/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.test.ts b/x-pack/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.test.ts
rename to x-pack/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.ts b/x-pack/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.ts
rename to x-pack/plugins/siem/public/components/ml/anomaly/use_anomalies_table_data.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/api/anomalies_table_data.ts b/x-pack/plugins/siem/public/components/ml/api/anomalies_table_data.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/api/anomalies_table_data.ts
rename to x-pack/plugins/siem/public/components/ml/api/anomalies_table_data.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/api/errors.ts b/x-pack/plugins/siem/public/components/ml/api/errors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/api/errors.ts
rename to x-pack/plugins/siem/public/components/ml/api/errors.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/api/get_ml_capabilities.ts b/x-pack/plugins/siem/public/components/ml/api/get_ml_capabilities.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/api/get_ml_capabilities.ts
rename to x-pack/plugins/siem/public/components/ml/api/get_ml_capabilities.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/api/throw_if_not_ok.test.ts b/x-pack/plugins/siem/public/components/ml/api/throw_if_not_ok.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/api/throw_if_not_ok.test.ts
rename to x-pack/plugins/siem/public/components/ml/api/throw_if_not_ok.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/api/throw_if_not_ok.ts b/x-pack/plugins/siem/public/components/ml/api/throw_if_not_ok.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/api/throw_if_not_ok.ts
rename to x-pack/plugins/siem/public/components/ml/api/throw_if_not_ok.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/api/translations.ts b/x-pack/plugins/siem/public/components/ml/api/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/api/translations.ts
rename to x-pack/plugins/siem/public/components/ml/api/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.test.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.test.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/add_entities_to_kql.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/entity_helpers.test.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/entity_helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/entity_helpers.test.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/entity_helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/entity_helpers.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/entity_helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/entity_helpers.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/entity_helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx b/x-pack/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx
rename to x-pack/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx
index b5aacdf664c67..b7c544273ae92 100644
--- a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx
+++ b/x-pack/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx
@@ -14,7 +14,7 @@ import { emptyEntity, multipleEntities, getMultipleEntities } from './entity_hel
import { SiemPageName } from '../../../pages/home/types';
import { HostsTableType } from '../../../store/hosts/model';
-import { url as urlUtils } from '../../../../../../../../src/plugins/kibana_utils/public';
+import { url as urlUtils } from '../../../../../../../src/plugins/kibana_utils/public';
interface QueryStringType {
'?_g': string;
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx b/x-pack/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx
rename to x-pack/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx
index e27e9dc084c57..54773e3ab6dda 100644
--- a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx
+++ b/x-pack/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx
@@ -13,7 +13,7 @@ import { replaceKQLParts } from './replace_kql_parts';
import { emptyEntity, getMultipleEntities, multipleEntities } from './entity_helpers';
import { SiemPageName } from '../../../pages/home/types';
-import { url as urlUtils } from '../../../../../../../../src/plugins/kibana_utils/public';
+import { url as urlUtils } from '../../../../../../../src/plugins/kibana_utils/public';
interface QueryStringType {
'?_g': string;
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.test.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.test.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/remove_kql_variables.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.test.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.test.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_commas_with_or.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.test.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.test.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/replace_kql_parts.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/rison_helpers.test.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/rison_helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/rison_helpers.test.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/rison_helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/rison_helpers.ts b/x-pack/plugins/siem/public/components/ml/conditional_links/rison_helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/conditional_links/rison_helpers.ts
rename to x-pack/plugins/siem/public/components/ml/conditional_links/rison_helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.test.ts b/x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.test.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.ts b/x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_host_type.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.test.ts b/x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.test.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.ts b/x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/get_criteria_from_network_type.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/host_to_criteria.test.ts b/x-pack/plugins/siem/public/components/ml/criteria/host_to_criteria.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/host_to_criteria.test.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/host_to_criteria.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/host_to_criteria.ts b/x-pack/plugins/siem/public/components/ml/criteria/host_to_criteria.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/host_to_criteria.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/host_to_criteria.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/network_to_criteria.test.ts b/x-pack/plugins/siem/public/components/ml/criteria/network_to_criteria.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/network_to_criteria.test.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/network_to_criteria.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/criteria/network_to_criteria.ts b/x-pack/plugins/siem/public/components/ml/criteria/network_to_criteria.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/criteria/network_to_criteria.ts
rename to x-pack/plugins/siem/public/components/ml/criteria/network_to_criteria.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/empty_ml_capabilities.ts b/x-pack/plugins/siem/public/components/ml/empty_ml_capabilities.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/empty_ml_capabilities.ts
rename to x-pack/plugins/siem/public/components/ml/empty_ml_capabilities.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/entity_draggable.test.tsx b/x-pack/plugins/siem/public/components/ml/entity_draggable.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/entity_draggable.test.tsx
rename to x-pack/plugins/siem/public/components/ml/entity_draggable.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/entity_draggable.tsx b/x-pack/plugins/siem/public/components/ml/entity_draggable.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/entity_draggable.tsx
rename to x-pack/plugins/siem/public/components/ml/entity_draggable.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/get_entries.test.ts b/x-pack/plugins/siem/public/components/ml/get_entries.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/get_entries.test.ts
rename to x-pack/plugins/siem/public/components/ml/get_entries.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/get_entries.ts b/x-pack/plugins/siem/public/components/ml/get_entries.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/get_entries.ts
rename to x-pack/plugins/siem/public/components/ml/get_entries.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/__snapshots__/create_influencers.test.tsx.snap b/x-pack/plugins/siem/public/components/ml/influencers/__snapshots__/create_influencers.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/__snapshots__/create_influencers.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml/influencers/__snapshots__/create_influencers.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/create_influencers.test.tsx b/x-pack/plugins/siem/public/components/ml/influencers/create_influencers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/create_influencers.test.tsx
rename to x-pack/plugins/siem/public/components/ml/influencers/create_influencers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/create_influencers.tsx b/x-pack/plugins/siem/public/components/ml/influencers/create_influencers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/create_influencers.tsx
rename to x-pack/plugins/siem/public/components/ml/influencers/create_influencers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.test.ts b/x-pack/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.test.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.ts b/x-pack/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/get_host_name_from_influencers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/get_network_from_influencers.test.ts b/x-pack/plugins/siem/public/components/ml/influencers/get_network_from_influencers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/get_network_from_influencers.test.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/get_network_from_influencers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/get_network_from_influencers.ts b/x-pack/plugins/siem/public/components/ml/influencers/get_network_from_influencers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/get_network_from_influencers.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/get_network_from_influencers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/host_to_influencers.test.ts b/x-pack/plugins/siem/public/components/ml/influencers/host_to_influencers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/host_to_influencers.test.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/host_to_influencers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/host_to_influencers.ts b/x-pack/plugins/siem/public/components/ml/influencers/host_to_influencers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/host_to_influencers.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/host_to_influencers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/network_to_influencers.test.ts b/x-pack/plugins/siem/public/components/ml/influencers/network_to_influencers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/network_to_influencers.test.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/network_to_influencers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/influencers/network_to_influencers.ts b/x-pack/plugins/siem/public/components/ml/influencers/network_to_influencers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/influencers/network_to_influencers.ts
rename to x-pack/plugins/siem/public/components/ml/influencers/network_to_influencers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/links/create_explorer_link.test.ts b/x-pack/plugins/siem/public/components/ml/links/create_explorer_link.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/links/create_explorer_link.test.ts
rename to x-pack/plugins/siem/public/components/ml/links/create_explorer_link.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/links/create_explorer_link.ts b/x-pack/plugins/siem/public/components/ml/links/create_explorer_link.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/links/create_explorer_link.ts
rename to x-pack/plugins/siem/public/components/ml/links/create_explorer_link.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/links/create_series_link.test.ts b/x-pack/plugins/siem/public/components/ml/links/create_series_link.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/links/create_series_link.test.ts
rename to x-pack/plugins/siem/public/components/ml/links/create_series_link.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/links/create_series_link.ts b/x-pack/plugins/siem/public/components/ml/links/create_series_link.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/links/create_series_link.ts
rename to x-pack/plugins/siem/public/components/ml/links/create_series_link.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/mock.ts b/x-pack/plugins/siem/public/components/ml/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/mock.ts
rename to x-pack/plugins/siem/public/components/ml/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.test.ts b/x-pack/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.test.ts
rename to x-pack/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.ts b/x-pack/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.ts
rename to x-pack/plugins/siem/public/components/ml/permissions/has_ml_admin_permissions.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.test.ts b/x-pack/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.test.ts
rename to x-pack/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.ts b/x-pack/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.ts
rename to x-pack/plugins/siem/public/components/ml/permissions/has_ml_user_permissions.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/permissions/ml_capabilities_provider.tsx b/x-pack/plugins/siem/public/components/ml/permissions/ml_capabilities_provider.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/permissions/ml_capabilities_provider.tsx
rename to x-pack/plugins/siem/public/components/ml/permissions/ml_capabilities_provider.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/permissions/translations.ts b/x-pack/plugins/siem/public/components/ml/permissions/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/permissions/translations.ts
rename to x-pack/plugins/siem/public/components/ml/permissions/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap b/x-pack/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_scores.test.tsx.snap b/x-pack/plugins/siem/public/components/ml/score/__snapshots__/anomaly_scores.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_scores.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml/score/__snapshots__/anomaly_scores.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/create_descriptions_list.test.tsx.snap b/x-pack/plugins/siem/public/components/ml/score/__snapshots__/create_descriptions_list.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/create_descriptions_list.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml/score/__snapshots__/create_descriptions_list.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/draggable_score.test.tsx.snap b/x-pack/plugins/siem/public/components/ml/score/__snapshots__/draggable_score.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/draggable_score.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml/score/__snapshots__/draggable_score.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_score.test.tsx b/x-pack/plugins/siem/public/components/ml/score/anomaly_score.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_score.test.tsx
rename to x-pack/plugins/siem/public/components/ml/score/anomaly_score.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_score.tsx b/x-pack/plugins/siem/public/components/ml/score/anomaly_score.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_score.tsx
rename to x-pack/plugins/siem/public/components/ml/score/anomaly_score.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_scores.test.tsx b/x-pack/plugins/siem/public/components/ml/score/anomaly_scores.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_scores.test.tsx
rename to x-pack/plugins/siem/public/components/ml/score/anomaly_scores.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_scores.tsx b/x-pack/plugins/siem/public/components/ml/score/anomaly_scores.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/anomaly_scores.tsx
rename to x-pack/plugins/siem/public/components/ml/score/anomaly_scores.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/create_description_list.tsx b/x-pack/plugins/siem/public/components/ml/score/create_description_list.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/create_description_list.tsx
rename to x-pack/plugins/siem/public/components/ml/score/create_description_list.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/create_descriptions_list.test.tsx b/x-pack/plugins/siem/public/components/ml/score/create_descriptions_list.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/create_descriptions_list.test.tsx
rename to x-pack/plugins/siem/public/components/ml/score/create_descriptions_list.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/create_entities_from_score.test.ts b/x-pack/plugins/siem/public/components/ml/score/create_entities_from_score.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/create_entities_from_score.test.ts
rename to x-pack/plugins/siem/public/components/ml/score/create_entities_from_score.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/create_entities_from_score.ts b/x-pack/plugins/siem/public/components/ml/score/create_entities_from_score.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/create_entities_from_score.ts
rename to x-pack/plugins/siem/public/components/ml/score/create_entities_from_score.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/draggable_score.test.tsx b/x-pack/plugins/siem/public/components/ml/score/draggable_score.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/draggable_score.test.tsx
rename to x-pack/plugins/siem/public/components/ml/score/draggable_score.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/draggable_score.tsx b/x-pack/plugins/siem/public/components/ml/score/draggable_score.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/draggable_score.tsx
rename to x-pack/plugins/siem/public/components/ml/score/draggable_score.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/get_score_string.test.ts b/x-pack/plugins/siem/public/components/ml/score/get_score_string.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/get_score_string.test.ts
rename to x-pack/plugins/siem/public/components/ml/score/get_score_string.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/get_top_severity.test.ts b/x-pack/plugins/siem/public/components/ml/score/get_top_severity.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/get_top_severity.test.ts
rename to x-pack/plugins/siem/public/components/ml/score/get_top_severity.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/get_top_severity.ts b/x-pack/plugins/siem/public/components/ml/score/get_top_severity.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/get_top_severity.ts
rename to x-pack/plugins/siem/public/components/ml/score/get_top_severity.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/score_health.tsx b/x-pack/plugins/siem/public/components/ml/score/score_health.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/score_health.tsx
rename to x-pack/plugins/siem/public/components/ml/score/score_health.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/score_interval_to_datetime.test.ts b/x-pack/plugins/siem/public/components/ml/score/score_interval_to_datetime.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/score_interval_to_datetime.test.ts
rename to x-pack/plugins/siem/public/components/ml/score/score_interval_to_datetime.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/score_interval_to_datetime.ts b/x-pack/plugins/siem/public/components/ml/score/score_interval_to_datetime.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/score_interval_to_datetime.ts
rename to x-pack/plugins/siem/public/components/ml/score/score_interval_to_datetime.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/translations.ts b/x-pack/plugins/siem/public/components/ml/score/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/score/translations.ts
rename to x-pack/plugins/siem/public/components/ml/score/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/anomalies_host_table.tsx b/x-pack/plugins/siem/public/components/ml/tables/anomalies_host_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/anomalies_host_table.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/anomalies_host_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/anomalies_network_table.tsx b/x-pack/plugins/siem/public/components/ml/tables/anomalies_network_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/anomalies_network_table.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/anomalies_network_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/basic_table.tsx b/x-pack/plugins/siem/public/components/ml/tables/basic_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/basic_table.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/basic_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.test.ts b/x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.test.ts
rename to x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.ts b/x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.ts
rename to x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_hosts.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.test.ts b/x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.test.ts
rename to x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.ts b/x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.ts
rename to x-pack/plugins/siem/public/components/ml/tables/convert_anomalies_to_network.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/create_compound_key.test.ts b/x-pack/plugins/siem/public/components/ml/tables/create_compound_key.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/create_compound_key.test.ts
rename to x-pack/plugins/siem/public/components/ml/tables/create_compound_key.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/create_compound_key.ts b/x-pack/plugins/siem/public/components/ml/tables/create_compound_key.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/create_compound_key.ts
rename to x-pack/plugins/siem/public/components/ml/tables/create_compound_key.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.test.tsx b/x-pack/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.test.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.tsx b/x-pack/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/get_anomalies_host_table_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.test.tsx b/x-pack/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.test.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.tsx b/x-pack/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.tsx
rename to x-pack/plugins/siem/public/components/ml/tables/get_anomalies_network_table_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/host_equality.test.ts b/x-pack/plugins/siem/public/components/ml/tables/host_equality.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/host_equality.test.ts
rename to x-pack/plugins/siem/public/components/ml/tables/host_equality.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/host_equality.ts b/x-pack/plugins/siem/public/components/ml/tables/host_equality.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/host_equality.ts
rename to x-pack/plugins/siem/public/components/ml/tables/host_equality.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/network_equality.test.ts b/x-pack/plugins/siem/public/components/ml/tables/network_equality.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/network_equality.test.ts
rename to x-pack/plugins/siem/public/components/ml/tables/network_equality.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/network_equality.ts b/x-pack/plugins/siem/public/components/ml/tables/network_equality.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/network_equality.ts
rename to x-pack/plugins/siem/public/components/ml/tables/network_equality.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/tables/translations.ts b/x-pack/plugins/siem/public/components/ml/tables/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/tables/translations.ts
rename to x-pack/plugins/siem/public/components/ml/tables/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/types.test.ts b/x-pack/plugins/siem/public/components/ml/types.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/types.test.ts
rename to x-pack/plugins/siem/public/components/ml/types.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml/types.ts b/x-pack/plugins/siem/public/components/ml/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml/types.ts
rename to x-pack/plugins/siem/public/components/ml/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/__mocks__/api.tsx b/x-pack/plugins/siem/public/components/ml_popover/__mocks__/api.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/__mocks__/api.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/__mocks__/api.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/__snapshots__/popover_description.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/__snapshots__/popover_description.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/__snapshots__/popover_description.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/__snapshots__/popover_description.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/__snapshots__/upgrade_contents.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/__snapshots__/upgrade_contents.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/__snapshots__/upgrade_contents.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/__snapshots__/upgrade_contents.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/api.tsx b/x-pack/plugins/siem/public/components/ml_popover/api.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/api.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/api.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/helpers.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/helpers.tsx b/x-pack/plugins/siem/public/components/ml_popover/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/helpers.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/translations.ts b/x-pack/plugins/siem/public/components/ml_popover/hooks/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/translations.ts
rename to x-pack/plugins/siem/public/components/ml_popover/hooks/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs.tsx b/x-pack/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.tsx b/x-pack/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/hooks/use_siem_jobs_helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/job_switch.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/job_switch.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/job_switch.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/job_switch.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/jobs_table.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/jobs_table.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/jobs_table.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/jobs_table.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/showing_count.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/showing_count.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/showing_count.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/__snapshots__/showing_count.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/groups_filter_popover.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/groups_filter_popover.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/groups_filter_popover.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/groups_filter_popover.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/jobs_table_filters.test.tsx.snap b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/jobs_table_filters.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/jobs_table_filters.test.tsx.snap
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/__snapshots__/jobs_table_filters.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/groups_filter_popover.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/jobs_table_filters.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/toggle_selected_group.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/translations.ts b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/filters/translations.ts
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/filters/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/job_switch.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/job_switch.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/job_switch.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/job_switch.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/job_switch.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/job_switch.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/job_switch.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/job_switch.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/jobs_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/showing_count.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/showing_count.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/showing_count.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/showing_count.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/showing_count.tsx b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/showing_count.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/showing_count.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/showing_count.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/translations.ts b/x-pack/plugins/siem/public/components/ml_popover/jobs_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/jobs_table/translations.ts
rename to x-pack/plugins/siem/public/components/ml_popover/jobs_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/ml_modules.tsx b/x-pack/plugins/siem/public/components/ml_popover/ml_modules.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/ml_modules.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/ml_modules.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/ml_popover.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/ml_popover.test.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/ml_popover.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/ml_popover.test.tsx
index bd7d696757ca6..3c93e1c195cd7 100644
--- a/x-pack/legacy/plugins/siem/public/components/ml_popover/ml_popover.test.tsx
+++ b/x-pack/plugins/siem/public/components/ml_popover/ml_popover.test.tsx
@@ -9,7 +9,6 @@ import { mountWithIntl } from 'test_utils/enzyme_helpers';
import { MlPopover } from './ml_popover';
-jest.mock('ui/new_platform');
jest.mock('../../lib/kibana');
jest.mock('../ml/permissions/has_ml_admin_permissions', () => ({
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/ml_popover.tsx b/x-pack/plugins/siem/public/components/ml_popover/ml_popover.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/ml_popover.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/ml_popover.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/popover_description.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/popover_description.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/popover_description.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/popover_description.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/popover_description.tsx b/x-pack/plugins/siem/public/components/ml_popover/popover_description.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/popover_description.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/popover_description.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/translations.ts b/x-pack/plugins/siem/public/components/ml_popover/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/translations.ts
rename to x-pack/plugins/siem/public/components/ml_popover/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/types.ts b/x-pack/plugins/siem/public/components/ml_popover/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/types.ts
rename to x-pack/plugins/siem/public/components/ml_popover/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/upgrade_contents.test.tsx b/x-pack/plugins/siem/public/components/ml_popover/upgrade_contents.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/upgrade_contents.test.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/upgrade_contents.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/ml_popover/upgrade_contents.tsx b/x-pack/plugins/siem/public/components/ml_popover/upgrade_contents.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/ml_popover/upgrade_contents.tsx
rename to x-pack/plugins/siem/public/components/ml_popover/upgrade_contents.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/breadcrumbs/index.test.ts b/x-pack/plugins/siem/public/components/navigation/breadcrumbs/index.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/navigation/breadcrumbs/index.test.ts
rename to x-pack/plugins/siem/public/components/navigation/breadcrumbs/index.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/breadcrumbs/index.ts b/x-pack/plugins/siem/public/components/navigation/breadcrumbs/index.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/navigation/breadcrumbs/index.ts
rename to x-pack/plugins/siem/public/components/navigation/breadcrumbs/index.ts
index e25fb4374bb14..7db88482c5bf8 100644
--- a/x-pack/legacy/plugins/siem/public/components/navigation/breadcrumbs/index.ts
+++ b/x-pack/plugins/siem/public/components/navigation/breadcrumbs/index.ts
@@ -6,7 +6,7 @@
import { getOr, omit } from 'lodash/fp';
-import { ChromeBreadcrumb } from '../../../../../../../../src/core/public';
+import { ChromeBreadcrumb } from '../../../core_types';
import { APP_NAME } from '../../../../common/constants';
import { StartServices } from '../../../plugin';
import { getBreadcrumbs as getHostDetailsBreadcrumbs } from '../../../pages/hosts/details/utils';
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/helpers.ts b/x-pack/plugins/siem/public/components/navigation/helpers.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/navigation/helpers.ts
rename to x-pack/plugins/siem/public/components/navigation/helpers.ts
index 9a95d93a2df70..5c4a47f64abff 100644
--- a/x-pack/legacy/plugins/siem/public/components/navigation/helpers.ts
+++ b/x-pack/plugins/siem/public/components/navigation/helpers.ts
@@ -16,7 +16,7 @@ import {
replaceStateKeyInQueryString,
getQueryStringFromLocation,
} from '../url_state/helpers';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
+import { Query, Filter } from '../../../../../../src/plugins/data/public';
import { TabNavigationProps } from './tab_navigation/types';
import { SearchNavTab } from './types';
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/index.test.tsx b/x-pack/plugins/siem/public/components/navigation/index.test.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/navigation/index.test.tsx
rename to x-pack/plugins/siem/public/components/navigation/index.test.tsx
index a821d310344d8..d8b62029138c8 100644
--- a/x-pack/legacy/plugins/siem/public/components/navigation/index.test.tsx
+++ b/x-pack/plugins/siem/public/components/navigation/index.test.tsx
@@ -15,7 +15,6 @@ import { HostsTableType } from '../../store/hosts/model';
import { RouteSpyState } from '../../utils/route/types';
import { SiemNavigationProps, SiemNavigationComponentProps } from './types';
-jest.mock('ui/new_platform');
jest.mock('./breadcrumbs', () => ({
setBreadcrumbs: jest.fn(),
}));
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/index.tsx b/x-pack/plugins/siem/public/components/navigation/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/navigation/index.tsx
rename to x-pack/plugins/siem/public/components/navigation/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/index.test.tsx b/x-pack/plugins/siem/public/components/navigation/tab_navigation/index.test.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/index.test.tsx
rename to x-pack/plugins/siem/public/components/navigation/tab_navigation/index.test.tsx
index b9563b60f301b..99ded06cfdcc8 100644
--- a/x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/index.test.tsx
+++ b/x-pack/plugins/siem/public/components/navigation/tab_navigation/index.test.tsx
@@ -16,8 +16,6 @@ import { CONSTANTS } from '../../url_state/constants';
import { TabNavigationComponent } from './';
import { TabNavigationProps } from './types';
-jest.mock('ui/new_platform');
-
describe('Tab Navigation', () => {
const pageName = SiemPageName.hosts;
const hostName = 'siem-window';
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/index.tsx b/x-pack/plugins/siem/public/components/navigation/tab_navigation/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/index.tsx
rename to x-pack/plugins/siem/public/components/navigation/tab_navigation/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/types.ts b/x-pack/plugins/siem/public/components/navigation/tab_navigation/types.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/types.ts
rename to x-pack/plugins/siem/public/components/navigation/tab_navigation/types.ts
index fe701ad115d17..2e2dea09f8c38 100644
--- a/x-pack/legacy/plugins/siem/public/components/navigation/tab_navigation/types.ts
+++ b/x-pack/plugins/siem/public/components/navigation/tab_navigation/types.ts
@@ -8,7 +8,7 @@ import { UrlInputsModel } from '../../../store/inputs/model';
import { CONSTANTS } from '../../url_state/constants';
import { HostsTableType } from '../../../store/hosts/model';
import { TimelineUrl } from '../../../store/timeline/model';
-import { Filter, Query } from '../../../../../../../../src/plugins/data/public';
+import { Filter, Query } from '../../../../../../../src/plugins/data/public';
import { SiemNavigationProps } from '../types';
diff --git a/x-pack/legacy/plugins/siem/public/components/navigation/types.ts b/x-pack/plugins/siem/public/components/navigation/types.ts
similarity index 93%
rename from x-pack/legacy/plugins/siem/public/components/navigation/types.ts
rename to x-pack/plugins/siem/public/components/navigation/types.ts
index 96a70e0bc70cc..e8a2865938062 100644
--- a/x-pack/legacy/plugins/siem/public/components/navigation/types.ts
+++ b/x-pack/plugins/siem/public/components/navigation/types.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Filter, Query } from '../../../../../../../src/plugins/data/public';
+import { Filter, Query } from '../../../../../../src/plugins/data/public';
import { HostsTableType } from '../../store/hosts/model';
import { UrlInputsModel } from '../../store/inputs/model';
import { TimelineUrl } from '../../store/timeline/model';
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/netflow/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/netflow/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/fingerprints/index.tsx b/x-pack/plugins/siem/public/components/netflow/fingerprints/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/fingerprints/index.tsx
rename to x-pack/plugins/siem/public/components/netflow/fingerprints/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/index.test.tsx b/x-pack/plugins/siem/public/components/netflow/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/index.test.tsx
rename to x-pack/plugins/siem/public/components/netflow/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/index.tsx b/x-pack/plugins/siem/public/components/netflow/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/index.tsx
rename to x-pack/plugins/siem/public/components/netflow/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/duration_event_start_end.tsx b/x-pack/plugins/siem/public/components/netflow/netflow_columns/duration_event_start_end.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/duration_event_start_end.tsx
rename to x-pack/plugins/siem/public/components/netflow/netflow_columns/duration_event_start_end.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/index.tsx b/x-pack/plugins/siem/public/components/netflow/netflow_columns/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/index.tsx
rename to x-pack/plugins/siem/public/components/netflow/netflow_columns/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/types.ts b/x-pack/plugins/siem/public/components/netflow/netflow_columns/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/types.ts
rename to x-pack/plugins/siem/public/components/netflow/netflow_columns/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/user_process.tsx b/x-pack/plugins/siem/public/components/netflow/netflow_columns/user_process.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/netflow_columns/user_process.tsx
rename to x-pack/plugins/siem/public/components/netflow/netflow_columns/user_process.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/netflow/types.ts b/x-pack/plugins/siem/public/components/netflow/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/netflow/types.ts
rename to x-pack/plugins/siem/public/components/netflow/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/helpers.test.ts b/x-pack/plugins/siem/public/components/news_feed/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/helpers.test.ts
rename to x-pack/plugins/siem/public/components/news_feed/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/helpers.ts b/x-pack/plugins/siem/public/components/news_feed/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/helpers.ts
rename to x-pack/plugins/siem/public/components/news_feed/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/index.tsx b/x-pack/plugins/siem/public/components/news_feed/index.tsx
similarity index 80%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/index.tsx
rename to x-pack/plugins/siem/public/components/news_feed/index.tsx
index 6a5e08b287f96..43b41fd901679 100644
--- a/x-pack/legacy/plugins/siem/public/components/news_feed/index.tsx
+++ b/x-pack/plugins/siem/public/components/news_feed/index.tsx
@@ -5,12 +5,13 @@
*/
import React, { useEffect, useState } from 'react';
-import chrome from 'ui/chrome';
import { fetchNews, getNewsFeedUrl, getNewsItemsFromApiResponse } from './helpers';
-import { useKibana, useUiSetting$ } from '../../lib/kibana';
+import { useKibana, useUiSetting$, KibanaServices } from '../../lib/kibana';
+import { errorToToaster, useStateToaster } from '../toasters';
import { NewsFeed } from './news_feed';
import { NewsItem } from './types';
+import * as i18n from './translations';
export const StatefulNewsFeed = React.memo<{
enableNewsFeedSetting: string;
@@ -20,13 +21,14 @@ export const StatefulNewsFeed = React.memo<{
const [enableNewsFeed] = useUiSetting$(enableNewsFeedSetting);
const [newsFeedUrlSetting] = useUiSetting$(newsFeedSetting);
const [news, setNews] = useState(null);
+ const [, dispatchToaster] = useStateToaster();
// respect kibana's global newsfeed.enabled setting
const newsfeedEnabled = kibanaNewsfeedEnabled && enableNewsFeed;
const newsFeedUrl = getNewsFeedUrl({
newsFeedUrlSetting,
- getKibanaVersion: chrome.getKibanaVersion,
+ getKibanaVersion: () => KibanaServices.getKibanaVersion(),
});
useEffect(() => {
@@ -39,7 +41,8 @@ export const StatefulNewsFeed = React.memo<{
if (!canceled) {
setNews(getNewsItemsFromApiResponse(apiResponse));
}
- } catch {
+ } catch (error) {
+ errorToToaster({ title: i18n.NEWSFEED_FETCH_ERROR, error, dispatchToaster });
if (!canceled) {
setNews([]);
}
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/news_feed.tsx b/x-pack/plugins/siem/public/components/news_feed/news_feed.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/news_feed.tsx
rename to x-pack/plugins/siem/public/components/news_feed/news_feed.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/news_link/index.tsx b/x-pack/plugins/siem/public/components/news_feed/news_link/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/news_link/index.tsx
rename to x-pack/plugins/siem/public/components/news_feed/news_link/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/no_news/index.tsx b/x-pack/plugins/siem/public/components/news_feed/no_news/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/no_news/index.tsx
rename to x-pack/plugins/siem/public/components/news_feed/no_news/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/post/index.tsx b/x-pack/plugins/siem/public/components/news_feed/post/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/post/index.tsx
rename to x-pack/plugins/siem/public/components/news_feed/post/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/translations.ts b/x-pack/plugins/siem/public/components/news_feed/translations.ts
similarity index 80%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/translations.ts
rename to x-pack/plugins/siem/public/components/news_feed/translations.ts
index 5d3b4171f501e..b4e80c73c7c4e 100644
--- a/x-pack/legacy/plugins/siem/public/components/news_feed/translations.ts
+++ b/x-pack/plugins/siem/public/components/news_feed/translations.ts
@@ -11,6 +11,10 @@ export const NO_NEWS_MESSAGE = i18n.translate('xpack.siem.newsFeed.noNewsMessage
'Your current news feed URL returned no recent news. You may update the URL or disable security news via',
});
+export const NEWSFEED_FETCH_ERROR = i18n.translate('xpack.siem.newsFeed.fetchErrorMessage', {
+ defaultMessage: 'There was an error retrieving the news feed.',
+});
+
export const ADVANCED_SETTINGS_LINK_TITLE = i18n.translate(
'xpack.siem.newsFeed.advancedSettingsLinkTitle',
{
diff --git a/x-pack/legacy/plugins/siem/public/components/news_feed/types.ts b/x-pack/plugins/siem/public/components/news_feed/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/news_feed/types.ts
rename to x-pack/plugins/siem/public/components/news_feed/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/add_note/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/notes/add_note/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/add_note/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/notes/add_note/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/add_note/__snapshots__/new_note.test.tsx.snap b/x-pack/plugins/siem/public/components/notes/add_note/__snapshots__/new_note.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/add_note/__snapshots__/new_note.test.tsx.snap
rename to x-pack/plugins/siem/public/components/notes/add_note/__snapshots__/new_note.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/add_note/index.test.tsx b/x-pack/plugins/siem/public/components/notes/add_note/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/add_note/index.test.tsx
rename to x-pack/plugins/siem/public/components/notes/add_note/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/add_note/index.tsx b/x-pack/plugins/siem/public/components/notes/add_note/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/add_note/index.tsx
rename to x-pack/plugins/siem/public/components/notes/add_note/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/add_note/new_note.test.tsx b/x-pack/plugins/siem/public/components/notes/add_note/new_note.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/add_note/new_note.test.tsx
rename to x-pack/plugins/siem/public/components/notes/add_note/new_note.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/add_note/new_note.tsx b/x-pack/plugins/siem/public/components/notes/add_note/new_note.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/add_note/new_note.tsx
rename to x-pack/plugins/siem/public/components/notes/add_note/new_note.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/columns.tsx b/x-pack/plugins/siem/public/components/notes/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/columns.tsx
rename to x-pack/plugins/siem/public/components/notes/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/helpers.tsx b/x-pack/plugins/siem/public/components/notes/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/helpers.tsx
rename to x-pack/plugins/siem/public/components/notes/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/index.tsx b/x-pack/plugins/siem/public/components/notes/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/index.tsx
rename to x-pack/plugins/siem/public/components/notes/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap b/x-pack/plugins/siem/public/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap
rename to x-pack/plugins/siem/public/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/index.test.tsx b/x-pack/plugins/siem/public/components/notes/note_card/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/index.test.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/index.tsx b/x-pack/plugins/siem/public/components/notes/note_card/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/index.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_body.test.tsx b/x-pack/plugins/siem/public/components/notes/note_card/note_card_body.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_body.test.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/note_card_body.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_body.tsx b/x-pack/plugins/siem/public/components/notes/note_card/note_card_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_body.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/note_card_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_header.test.tsx b/x-pack/plugins/siem/public/components/notes/note_card/note_card_header.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_header.test.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/note_card_header.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_header.tsx b/x-pack/plugins/siem/public/components/notes/note_card/note_card_header.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/note_card_header.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/note_card_header.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/note_created.test.tsx b/x-pack/plugins/siem/public/components/notes/note_card/note_created.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/note_created.test.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/note_created.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_card/note_created.tsx b/x-pack/plugins/siem/public/components/notes/note_card/note_created.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_card/note_created.tsx
rename to x-pack/plugins/siem/public/components/notes/note_card/note_created.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_cards/index.test.tsx b/x-pack/plugins/siem/public/components/notes/note_cards/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_cards/index.test.tsx
rename to x-pack/plugins/siem/public/components/notes/note_cards/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/note_cards/index.tsx b/x-pack/plugins/siem/public/components/notes/note_cards/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/note_cards/index.tsx
rename to x-pack/plugins/siem/public/components/notes/note_cards/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/notes/translations.ts b/x-pack/plugins/siem/public/components/notes/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/notes/translations.ts
rename to x-pack/plugins/siem/public/components/notes/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/constants.ts b/x-pack/plugins/siem/public/components/open_timeline/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/constants.ts
rename to x-pack/plugins/siem/public/components/open_timeline/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.tsx b/x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/delete_timeline_modal.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/delete_timeline_modal/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/helpers.test.ts b/x-pack/plugins/siem/public/components/open_timeline/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/helpers.test.ts
rename to x-pack/plugins/siem/public/components/open_timeline/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/helpers.ts b/x-pack/plugins/siem/public/components/open_timeline/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/helpers.ts
rename to x-pack/plugins/siem/public/components/open_timeline/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/note_previews/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/note_previews/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/note_previews/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/note_previews/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/note_preview.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/note_previews/note_preview.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/note_preview.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/note_previews/note_preview.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/note_preview.tsx b/x-pack/plugins/siem/public/components/open_timeline/note_previews/note_preview.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/note_previews/note_preview.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/note_previews/note_preview.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.tsx b/x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/search_row/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/search_row/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/search_row/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/search_row/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/search_row/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/search_row/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/search_row/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/search_row/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/actions_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/common_columns.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/common_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/common_columns.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/common_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/common_columns.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/common_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/common_columns.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/common_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/common_styles.ts b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/common_styles.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/common_styles.ts
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/common_styles.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/extended_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/icon_header_columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/timelines_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/timelines_table/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/timelines_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/title_row/index.test.tsx b/x-pack/plugins/siem/public/components/open_timeline/title_row/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/title_row/index.test.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/title_row/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/title_row/index.tsx b/x-pack/plugins/siem/public/components/open_timeline/title_row/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/title_row/index.tsx
rename to x-pack/plugins/siem/public/components/open_timeline/title_row/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/translations.ts b/x-pack/plugins/siem/public/components/open_timeline/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/translations.ts
rename to x-pack/plugins/siem/public/components/open_timeline/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/types.ts b/x-pack/plugins/siem/public/components/open_timeline/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/open_timeline/types.ts
rename to x-pack/plugins/siem/public/components/open_timeline/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.test.tsx b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.ts b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.ts
similarity index 93%
rename from x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.ts
rename to x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.ts
index bafe033368c83..795be5388fc48 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.ts
+++ b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/helpers.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Filter } from '../../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../../src/plugins/data/public';
export const createFilter = (key: string, value: string[] | string | null | undefined): Filter => {
const queryValue = value != null ? (Array.isArray(value) ? value[0] : value) : null;
diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.test.tsx b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.tsx b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.tsx
rename to x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.tsx
index 160cd020796db..42aae0f678ac8 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.tsx
+++ b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/index.tsx
@@ -8,7 +8,7 @@ import { EuiIcon, EuiPanel, EuiToolTip } from '@elastic/eui';
import React, { useCallback } from 'react';
import styled from 'styled-components';
-import { Filter } from '../../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../../src/plugins/data/public';
import { WithHoverActions } from '../../with_hover_actions';
import { useKibana } from '../../../lib/kibana';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/translations.ts b/x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/add_filter_to_global_search_bar/translations.ts
rename to x-pack/plugins/siem/public/components/page/add_filter_to_global_search_bar/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/hosts/authentications_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/hosts/authentications_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/hosts/authentications_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/authentications_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/authentications_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/authentications_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/mock.ts b/x-pack/plugins/siem/public/components/page/hosts/authentications_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/hosts/authentications_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/translations.ts b/x-pack/plugins/siem/public/components/page/hosts/authentications_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/authentications_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/hosts/authentications_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx b/x-pack/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/hosts/host_overview/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/hosts/host_overview/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/index.test.tsx b/x-pack/plugins/siem/public/components/page/hosts/host_overview/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/host_overview/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/host_overview/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/host_overview/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/mock.ts b/x-pack/plugins/siem/public/components/page/hosts/host_overview/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/mock.ts
rename to x-pack/plugins/siem/public/components/page/hosts/host_overview/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/translations.ts b/x-pack/plugins/siem/public/components/page/hosts/host_overview/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/host_overview/translations.ts
rename to x-pack/plugins/siem/public/components/page/hosts/host_overview/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/hosts/hosts_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/hosts/hosts_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/columns.tsx b/x-pack/plugins/siem/public/components/page/hosts/hosts_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/hosts_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/hosts_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/hosts_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/mock.ts b/x-pack/plugins/siem/public/components/page/hosts/hosts_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/hosts/hosts_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/translations.ts b/x-pack/plugins/siem/public/components/page/hosts/hosts_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/hosts/hosts_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/index.test.tsx b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_host_details_mapping.ts b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_host_details_mapping.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_host_details_mapping.ts
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_host_details_mapping.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_hosts_mapping.ts b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_hosts_mapping.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_hosts_mapping.ts
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/kpi_hosts_mapping.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/mock.tsx b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/mock.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/mock.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/mock.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/translations.ts b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/translations.ts
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/types.ts b/x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/kpi_hosts/types.ts
rename to x-pack/plugins/siem/public/components/page/hosts/kpi_hosts/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/index.tsx b/x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/mock.ts b/x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/translations.ts b/x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/hosts/uncommon_process_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/hosts/uncommon_process_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/index.tsx b/x-pack/plugins/siem/public/components/page/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/index.tsx
rename to x-pack/plugins/siem/public/components/page/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/manage_query.tsx b/x-pack/plugins/siem/public/components/page/manage_query.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/manage_query.tsx
rename to x-pack/plugins/siem/public/components/page/manage_query.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/flow_target_select_connected/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/flow_target_select_connected/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/flow_target_select_connected/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/flow_target_select_connected/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/flow_target_select_connected/index.tsx b/x-pack/plugins/siem/public/components/page/network/flow_target_select_connected/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/flow_target_select_connected/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/flow_target_select_connected/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/index.tsx b/x-pack/plugins/siem/public/components/page/network/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/ip_overview/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/ip_overview/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/ip_overview/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/ip_overview/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/index.tsx b/x-pack/plugins/siem/public/components/page/network/ip_overview/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/ip_overview/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/mock.ts b/x-pack/plugins/siem/public/components/page/network/ip_overview/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/ip_overview/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/translations.ts b/x-pack/plugins/siem/public/components/page/network/ip_overview/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/ip_overview/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/ip_overview/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/kpi_network/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/kpi_network/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/kpi_network/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/kpi_network/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/index.tsx b/x-pack/plugins/siem/public/components/page/network/kpi_network/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/kpi_network/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/mock.ts b/x-pack/plugins/siem/public/components/page/network/kpi_network/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/kpi_network/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/translations.ts b/x-pack/plugins/siem/public/components/page/network/kpi_network/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/kpi_network/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/kpi_network/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/is_ptr_included.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/is_ptr_included.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/is_ptr_included.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/__snapshots__/is_ptr_included.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/columns.tsx b/x-pack/plugins/siem/public/components/page/network/network_dns_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.tsx b/x-pack/plugins/siem/public/components/page/network/network_dns_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.test.tsx b/x-pack/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.tsx b/x-pack/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/is_ptr_included.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/mock.ts b/x-pack/plugins/siem/public/components/page/network/network_dns_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/translations.ts b/x-pack/plugins/siem/public/components/page/network/network_dns_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/network_dns_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/network_http_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/network_http_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/columns.tsx b/x-pack/plugins/siem/public/components/page/network/network_http_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_http_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/network_http_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_http_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.tsx b/x-pack/plugins/siem/public/components/page/network/network_http_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_http_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/mock.ts b/x-pack/plugins/siem/public/components/page/network/network_http_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/network_http_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/translations.ts b/x-pack/plugins/siem/public/components/page/network/network_http_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/network_http_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/network_top_countries_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/network_top_countries_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/columns.tsx b/x-pack/plugins/siem/public/components/page/network/network_top_countries_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_top_countries_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.tsx b/x-pack/plugins/siem/public/components/page/network/network_top_countries_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_top_countries_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/mock.ts b/x-pack/plugins/siem/public/components/page/network/network_top_countries_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/network_top_countries_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/translations.ts b/x-pack/plugins/siem/public/components/page/network/network_top_countries_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/network_top_countries_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/columns.tsx b/x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.tsx b/x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/mock.ts b/x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/translations.ts b/x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/network_top_n_flow_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/tls_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/tls_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/tls_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/columns.tsx b/x-pack/plugins/siem/public/components/page/network/tls_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/tls_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/network/tls_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/tls_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/tls_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.tsx b/x-pack/plugins/siem/public/components/page/network/tls_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/tls_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/mock.ts b/x-pack/plugins/siem/public/components/page/network/tls_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/tls_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/tls_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/translations.ts b/x-pack/plugins/siem/public/components/page/network/tls_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/tls_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/tls_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/network/users_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/users_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/network/users_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/columns.tsx b/x-pack/plugins/siem/public/components/page/network/users_table/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/users_table/columns.tsx
rename to x-pack/plugins/siem/public/components/page/network/users_table/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.test.tsx b/x-pack/plugins/siem/public/components/page/network/users_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/network/users_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.tsx b/x-pack/plugins/siem/public/components/page/network/users_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.tsx
rename to x-pack/plugins/siem/public/components/page/network/users_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/mock.ts b/x-pack/plugins/siem/public/components/page/network/users_table/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/users_table/mock.ts
rename to x-pack/plugins/siem/public/components/page/network/users_table/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/translations.ts b/x-pack/plugins/siem/public/components/page/network/users_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/network/users_table/translations.ts
rename to x-pack/plugins/siem/public/components/page/network/users_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/loading_placeholders/index.tsx b/x-pack/plugins/siem/public/components/page/overview/loading_placeholders/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/loading_placeholders/index.tsx
rename to x-pack/plugins/siem/public/components/page/overview/loading_placeholders/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.test.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_host/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_host/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_host/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_host/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/overview/overview_host_stats/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/overview/overview_host_stats/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/index.test.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_host_stats/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_host_stats/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/index.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_host_stats/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/index.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_host_stats/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/mock.ts b/x-pack/plugins/siem/public/components/page/overview/overview_host_stats/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_host_stats/mock.ts
rename to x-pack/plugins/siem/public/components/page/overview/overview_host_stats/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.test.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_network/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_network/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_network/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_network/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/page/overview/overview_network_stats/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/page/overview/overview_network_stats/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/index.test.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_network_stats/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/index.test.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_network_stats/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/index.tsx b/x-pack/plugins/siem/public/components/page/overview/overview_network_stats/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/index.tsx
rename to x-pack/plugins/siem/public/components/page/overview/overview_network_stats/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/mock.ts b/x-pack/plugins/siem/public/components/page/overview/overview_network_stats/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/overview_network_stats/mock.ts
rename to x-pack/plugins/siem/public/components/page/overview/overview_network_stats/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/stat_value.tsx b/x-pack/plugins/siem/public/components/page/overview/stat_value.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/stat_value.tsx
rename to x-pack/plugins/siem/public/components/page/overview/stat_value.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/types.ts b/x-pack/plugins/siem/public/components/page/overview/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/overview/types.ts
rename to x-pack/plugins/siem/public/components/page/overview/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page/translations.ts b/x-pack/plugins/siem/public/components/page/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page/translations.ts
rename to x-pack/plugins/siem/public/components/page/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/page_route/index.tsx b/x-pack/plugins/siem/public/components/page_route/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page_route/index.tsx
rename to x-pack/plugins/siem/public/components/page_route/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page_route/pageroute.test.tsx b/x-pack/plugins/siem/public/components/page_route/pageroute.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page_route/pageroute.test.tsx
rename to x-pack/plugins/siem/public/components/page_route/pageroute.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/page_route/pageroute.tsx b/x-pack/plugins/siem/public/components/page_route/pageroute.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/page_route/pageroute.tsx
rename to x-pack/plugins/siem/public/components/page_route/pageroute.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/paginated_table/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/paginated_table/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/helpers.test.ts b/x-pack/plugins/siem/public/components/paginated_table/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/helpers.test.ts
rename to x-pack/plugins/siem/public/components/paginated_table/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/helpers.ts b/x-pack/plugins/siem/public/components/paginated_table/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/helpers.ts
rename to x-pack/plugins/siem/public/components/paginated_table/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/index.mock.tsx b/x-pack/plugins/siem/public/components/paginated_table/index.mock.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/index.mock.tsx
rename to x-pack/plugins/siem/public/components/paginated_table/index.mock.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/index.test.tsx b/x-pack/plugins/siem/public/components/paginated_table/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/index.test.tsx
rename to x-pack/plugins/siem/public/components/paginated_table/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/index.tsx b/x-pack/plugins/siem/public/components/paginated_table/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/index.tsx
rename to x-pack/plugins/siem/public/components/paginated_table/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/paginated_table/translations.ts b/x-pack/plugins/siem/public/components/paginated_table/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/paginated_table/translations.ts
rename to x-pack/plugins/siem/public/components/paginated_table/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/panel/index.test.tsx b/x-pack/plugins/siem/public/components/panel/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/panel/index.test.tsx
rename to x-pack/plugins/siem/public/components/panel/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/panel/index.tsx b/x-pack/plugins/siem/public/components/panel/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/panel/index.tsx
rename to x-pack/plugins/siem/public/components/panel/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/pin/index.test.tsx b/x-pack/plugins/siem/public/components/pin/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/pin/index.test.tsx
rename to x-pack/plugins/siem/public/components/pin/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/pin/index.tsx b/x-pack/plugins/siem/public/components/pin/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/pin/index.tsx
rename to x-pack/plugins/siem/public/components/pin/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/port/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/port/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/port/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/port/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/port/index.test.tsx b/x-pack/plugins/siem/public/components/port/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/port/index.test.tsx
rename to x-pack/plugins/siem/public/components/port/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/port/index.tsx b/x-pack/plugins/siem/public/components/port/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/port/index.tsx
rename to x-pack/plugins/siem/public/components/port/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/progress_inline/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/progress_inline/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/progress_inline/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/progress_inline/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/progress_inline/index.test.tsx b/x-pack/plugins/siem/public/components/progress_inline/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/progress_inline/index.test.tsx
rename to x-pack/plugins/siem/public/components/progress_inline/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/progress_inline/index.tsx b/x-pack/plugins/siem/public/components/progress_inline/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/progress_inline/index.tsx
rename to x-pack/plugins/siem/public/components/progress_inline/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/query_bar/index.test.tsx b/x-pack/plugins/siem/public/components/query_bar/index.test.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/query_bar/index.test.tsx
rename to x-pack/plugins/siem/public/components/query_bar/index.test.tsx
index 870d0b40d8cd4..dbe17e4f20005 100644
--- a/x-pack/legacy/plugins/siem/public/components/query_bar/index.test.tsx
+++ b/x-pack/plugins/siem/public/components/query_bar/index.test.tsx
@@ -10,7 +10,7 @@ import React from 'react';
import { TestProviders, mockIndexPattern } from '../../mock';
import { createKibanaCoreStartMock } from '../../mock/kibana_core';
import { DEFAULT_FROM, DEFAULT_TO } from '../../../common/constants';
-import { FilterManager, SearchBar } from '../../../../../../../src/plugins/data/public';
+import { FilterManager, SearchBar } from '../../../../../../src/plugins/data/public';
import { QueryBar, QueryBarComponentProps } from '.';
import { createKibanaContextProviderMock } from '../../mock/kibana_react';
diff --git a/x-pack/legacy/plugins/siem/public/components/query_bar/index.tsx b/x-pack/plugins/siem/public/components/query_bar/index.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/components/query_bar/index.tsx
rename to x-pack/plugins/siem/public/components/query_bar/index.tsx
index 557d389aefee9..1ad7bc16b901e 100644
--- a/x-pack/legacy/plugins/siem/public/components/query_bar/index.tsx
+++ b/x-pack/plugins/siem/public/components/query_bar/index.tsx
@@ -17,8 +17,8 @@ import {
SavedQuery,
SearchBar,
SavedQueryTimeFilter,
-} from '../../../../../../../src/plugins/data/public';
-import { Storage } from '../../../../../../../src/plugins/kibana_utils/public';
+} from '../../../../../../src/plugins/data/public';
+import { Storage } from '../../../../../../src/plugins/kibana_utils/public';
export interface QueryBarComponentProps {
dataTestSubj?: string;
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/counts/index.tsx b/x-pack/plugins/siem/public/components/recent_timelines/counts/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/counts/index.tsx
rename to x-pack/plugins/siem/public/components/recent_timelines/counts/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/filters/index.tsx b/x-pack/plugins/siem/public/components/recent_timelines/filters/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/filters/index.tsx
rename to x-pack/plugins/siem/public/components/recent_timelines/filters/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/header/index.tsx b/x-pack/plugins/siem/public/components/recent_timelines/header/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/header/index.tsx
rename to x-pack/plugins/siem/public/components/recent_timelines/header/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/index.tsx b/x-pack/plugins/siem/public/components/recent_timelines/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/index.tsx
rename to x-pack/plugins/siem/public/components/recent_timelines/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/recent_timelines.tsx b/x-pack/plugins/siem/public/components/recent_timelines/recent_timelines.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/recent_timelines.tsx
rename to x-pack/plugins/siem/public/components/recent_timelines/recent_timelines.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/translations.ts b/x-pack/plugins/siem/public/components/recent_timelines/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/translations.ts
rename to x-pack/plugins/siem/public/components/recent_timelines/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/recent_timelines/types.ts b/x-pack/plugins/siem/public/components/recent_timelines/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/recent_timelines/types.ts
rename to x-pack/plugins/siem/public/components/recent_timelines/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/scroll_to_top/index.test.tsx b/x-pack/plugins/siem/public/components/scroll_to_top/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/scroll_to_top/index.test.tsx
rename to x-pack/plugins/siem/public/components/scroll_to_top/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/scroll_to_top/index.tsx b/x-pack/plugins/siem/public/components/scroll_to_top/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/scroll_to_top/index.tsx
rename to x-pack/plugins/siem/public/components/scroll_to_top/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/search_bar/index.tsx b/x-pack/plugins/siem/public/components/search_bar/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/search_bar/index.tsx
rename to x-pack/plugins/siem/public/components/search_bar/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/search_bar/selectors.ts b/x-pack/plugins/siem/public/components/search_bar/selectors.ts
similarity index 93%
rename from x-pack/legacy/plugins/siem/public/components/search_bar/selectors.ts
rename to x-pack/plugins/siem/public/components/search_bar/selectors.ts
index f501466db9ed9..5d566ecc40e5b 100644
--- a/x-pack/legacy/plugins/siem/public/components/search_bar/selectors.ts
+++ b/x-pack/plugins/siem/public/components/search_bar/selectors.ts
@@ -7,7 +7,7 @@
import { createSelector } from 'reselect';
import { SavedQuery } from 'src/legacy/core_plugins/data/public';
import { InputsRange } from '../../store/inputs/model';
-import { Query } from '../../../../../../../src/plugins/data/public';
+import { Query } from '../../../../../../src/plugins/data/public';
export {
endSelector,
diff --git a/x-pack/legacy/plugins/siem/public/components/selectable_text/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/selectable_text/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/selectable_text/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/selectable_text/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/selectable_text/index.test.tsx b/x-pack/plugins/siem/public/components/selectable_text/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/selectable_text/index.test.tsx
rename to x-pack/plugins/siem/public/components/selectable_text/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/selectable_text/index.tsx b/x-pack/plugins/siem/public/components/selectable_text/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/selectable_text/index.tsx
rename to x-pack/plugins/siem/public/components/selectable_text/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/sidebar_header/index.tsx b/x-pack/plugins/siem/public/components/sidebar_header/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/sidebar_header/index.tsx
rename to x-pack/plugins/siem/public/components/sidebar_header/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/skeleton_row/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/skeleton_row/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/skeleton_row/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/skeleton_row/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/skeleton_row/index.test.tsx b/x-pack/plugins/siem/public/components/skeleton_row/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/skeleton_row/index.test.tsx
rename to x-pack/plugins/siem/public/components/skeleton_row/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/skeleton_row/index.tsx b/x-pack/plugins/siem/public/components/skeleton_row/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/skeleton_row/index.tsx
rename to x-pack/plugins/siem/public/components/skeleton_row/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/source_destination/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/source_destination/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/country_flag.tsx b/x-pack/plugins/siem/public/components/source_destination/country_flag.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/country_flag.tsx
rename to x-pack/plugins/siem/public/components/source_destination/country_flag.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/field_names.ts b/x-pack/plugins/siem/public/components/source_destination/field_names.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/field_names.ts
rename to x-pack/plugins/siem/public/components/source_destination/field_names.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/geo_fields.tsx b/x-pack/plugins/siem/public/components/source_destination/geo_fields.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/geo_fields.tsx
rename to x-pack/plugins/siem/public/components/source_destination/geo_fields.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/index.test.tsx b/x-pack/plugins/siem/public/components/source_destination/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/index.test.tsx
rename to x-pack/plugins/siem/public/components/source_destination/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/index.tsx b/x-pack/plugins/siem/public/components/source_destination/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/index.tsx
rename to x-pack/plugins/siem/public/components/source_destination/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/ip_with_port.tsx b/x-pack/plugins/siem/public/components/source_destination/ip_with_port.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/ip_with_port.tsx
rename to x-pack/plugins/siem/public/components/source_destination/ip_with_port.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/label.tsx b/x-pack/plugins/siem/public/components/source_destination/label.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/label.tsx
rename to x-pack/plugins/siem/public/components/source_destination/label.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/network.tsx b/x-pack/plugins/siem/public/components/source_destination/network.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/network.tsx
rename to x-pack/plugins/siem/public/components/source_destination/network.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_arrows.tsx b/x-pack/plugins/siem/public/components/source_destination/source_destination_arrows.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_arrows.tsx
rename to x-pack/plugins/siem/public/components/source_destination/source_destination_arrows.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_ip.test.tsx b/x-pack/plugins/siem/public/components/source_destination/source_destination_ip.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_ip.test.tsx
rename to x-pack/plugins/siem/public/components/source_destination/source_destination_ip.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_ip.tsx b/x-pack/plugins/siem/public/components/source_destination/source_destination_ip.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_ip.tsx
rename to x-pack/plugins/siem/public/components/source_destination/source_destination_ip.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_with_arrows.tsx b/x-pack/plugins/siem/public/components/source_destination/source_destination_with_arrows.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/source_destination_with_arrows.tsx
rename to x-pack/plugins/siem/public/components/source_destination/source_destination_with_arrows.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/translations.ts b/x-pack/plugins/siem/public/components/source_destination/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/translations.ts
rename to x-pack/plugins/siem/public/components/source_destination/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/source_destination/types.ts b/x-pack/plugins/siem/public/components/source_destination/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/source_destination/types.ts
rename to x-pack/plugins/siem/public/components/source_destination/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/stat_items/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/stat_items/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/stat_items/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/stat_items/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/stat_items/index.test.tsx b/x-pack/plugins/siem/public/components/stat_items/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/stat_items/index.test.tsx
rename to x-pack/plugins/siem/public/components/stat_items/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/stat_items/index.tsx b/x-pack/plugins/siem/public/components/stat_items/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/stat_items/index.tsx
rename to x-pack/plugins/siem/public/components/stat_items/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/subtitle/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/subtitle/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/subtitle/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/subtitle/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/subtitle/index.test.tsx b/x-pack/plugins/siem/public/components/subtitle/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/subtitle/index.test.tsx
rename to x-pack/plugins/siem/public/components/subtitle/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/subtitle/index.tsx b/x-pack/plugins/siem/public/components/subtitle/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/subtitle/index.tsx
rename to x-pack/plugins/siem/public/components/subtitle/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/super_date_picker/index.test.tsx b/x-pack/plugins/siem/public/components/super_date_picker/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/super_date_picker/index.test.tsx
rename to x-pack/plugins/siem/public/components/super_date_picker/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/super_date_picker/index.tsx b/x-pack/plugins/siem/public/components/super_date_picker/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/super_date_picker/index.tsx
rename to x-pack/plugins/siem/public/components/super_date_picker/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/super_date_picker/selectors.test.ts b/x-pack/plugins/siem/public/components/super_date_picker/selectors.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/super_date_picker/selectors.test.ts
rename to x-pack/plugins/siem/public/components/super_date_picker/selectors.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/super_date_picker/selectors.ts b/x-pack/plugins/siem/public/components/super_date_picker/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/super_date_picker/selectors.ts
rename to x-pack/plugins/siem/public/components/super_date_picker/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/tables/__snapshots__/helpers.test.tsx.snap b/x-pack/plugins/siem/public/components/tables/__snapshots__/helpers.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/tables/__snapshots__/helpers.test.tsx.snap
rename to x-pack/plugins/siem/public/components/tables/__snapshots__/helpers.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/tables/helpers.test.tsx b/x-pack/plugins/siem/public/components/tables/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/tables/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/tables/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/tables/helpers.tsx b/x-pack/plugins/siem/public/components/tables/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/tables/helpers.tsx
rename to x-pack/plugins/siem/public/components/tables/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/__snapshots__/timeline.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/__snapshots__/timeline.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/__snapshots__/timeline.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/__snapshots__/timeline.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/auto_save_warning/index.tsx b/x-pack/plugins/siem/public/components/timeline/auto_save_warning/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/auto_save_warning/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/auto_save_warning/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/auto_save_warning/translations.ts b/x-pack/plugins/siem/public/components/timeline/auto_save_warning/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/auto_save_warning/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/auto_save_warning/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/actions/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/actions/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/actions/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/actions/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/actions/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/actions/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/actions/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/actions/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/column_headers/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/actions/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/actions/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/actions/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/actions/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/column_header.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/column_header.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/column_header.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/column_header.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/common/dragging_container.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/common/dragging_container.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/common/dragging_container.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/common/dragging_container.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/common/styles.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/common/styles.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/common/styles.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/common/styles.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/default_headers.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/default_headers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/default_headers.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/default_headers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/events_select/helpers.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/events_select/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/events_select/helpers.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/events_select/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/events_select/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/events_select/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/events_select/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/events_select/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/events_select/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/events_select/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/events_select/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/events_select/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/filter/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/column_headers/filter/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/filter/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/filter/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/filter/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/filter/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/filter/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/filter/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/filter/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/filter/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/filter/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/filter/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/header_content.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header/header_content.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/header_content.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header/header_content.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/helpers.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/helpers.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/header_tooltip_content/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/helpers.test.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/helpers.test.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/helpers.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/helpers.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/ranges.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/ranges.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/ranges.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/ranges.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/range_picker/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/range_picker/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/text_filter/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/column_headers/text_filter/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/text_filter/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/text_filter/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/text_filter/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/column_headers/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_headers/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_headers/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/column_id.ts b/x-pack/plugins/siem/public/components/timeline/body/column_id.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/column_id.ts
rename to x-pack/plugins/siem/public/components/timeline/body/column_id.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/constants.ts b/x-pack/plugins/siem/public/components/timeline/body/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/constants.ts
rename to x-pack/plugins/siem/public/components/timeline/body/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/data_driven_columns/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/data_driven_columns/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/data_driven_columns/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/data_driven_columns/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/data_driven_columns/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/data_driven_columns/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/data_driven_columns/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/data_driven_columns/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/data_driven_columns/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/data_driven_columns/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/data_driven_columns/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/data_driven_columns/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/events/event_column_view.tsx b/x-pack/plugins/siem/public/components/timeline/body/events/event_column_view.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/events/event_column_view.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/events/event_column_view.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/events/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/events/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/events/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/events/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/events/stateful_event.tsx b/x-pack/plugins/siem/public/components/timeline/body/events/stateful_event.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/events/stateful_event.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/events/stateful_event.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/events/stateful_event_child.tsx b/x-pack/plugins/siem/public/components/timeline/body/events/stateful_event_child.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/events/stateful_event_child.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/events/stateful_event_child.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/helpers.test.ts b/x-pack/plugins/siem/public/components/timeline/body/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/helpers.test.ts
rename to x-pack/plugins/siem/public/components/timeline/body/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/helpers.ts b/x-pack/plugins/siem/public/components/timeline/body/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/helpers.ts
rename to x-pack/plugins/siem/public/components/timeline/body/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/index.tsx b/x-pack/plugins/siem/public/components/timeline/body/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/mini_map/date_ranges.test.ts b/x-pack/plugins/siem/public/components/timeline/body/mini_map/date_ranges.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/mini_map/date_ranges.test.ts
rename to x-pack/plugins/siem/public/components/timeline/body/mini_map/date_ranges.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/mini_map/date_ranges.ts b/x-pack/plugins/siem/public/components/timeline/body/mini_map/date_ranges.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/mini_map/date_ranges.ts
rename to x-pack/plugins/siem/public/components/timeline/body/mini_map/date_ranges.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/args.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/args.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/args.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/args.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/empty_column_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/empty_column_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/empty_column_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/empty_column_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/formatted_field.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/formatted_field.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/formatted_field.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/formatted_field.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_column_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_column_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_column_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_column_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/get_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/host_working_dir.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/host_working_dir.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/host_working_dir.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/host_working_dir.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_column_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_column_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_column_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_column_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/plain_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/process_draggable.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/process_draggable.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/process_draggable.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/process_draggable.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/unknown_column_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/unknown_column_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/unknown_column_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/unknown_column_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/user_host_working_dir.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/user_host_working_dir.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/__snapshots__/user_host_working_dir.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/__snapshots__/user_host_working_dir.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/args.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/args.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/args.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/args.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/args.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/args.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/args.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/args.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_details.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_file_details.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_file_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_file_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_file_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/generic_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/primary_secondary_user_info.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/primary_secondary_user_info.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/primary_secondary_user_info.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/primary_secondary_user_info.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/session_user_host_working_dir.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/session_user_host_working_dir.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/session_user_host_working_dir.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/__snapshots__/session_user_host_working_dir.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_file_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/generic_row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/primary_secondary_user_info.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/session_user_host_working_dir.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/auditd/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/auditd/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/column_renderer.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/column_renderer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/column_renderer.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/column_renderer.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/constants.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/constants.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/constants.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/constants.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/dns/dns_request_event_details_line.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/dns/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/dns/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/dns/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/empty_column_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/endgame_security_event_details_line.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/endgame/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/endgame/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/exit_code_draggable.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/file_draggable.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/file_draggable.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/file_draggable.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/file_draggable.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/file_draggable.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/file_draggable.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/file_draggable.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/file_draggable.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/formatted_field.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/formatted_field.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field_helpers.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/formatted_field_helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field_helpers.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/formatted_field_helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/get_column_renderer.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/get_row_renderer.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/helpers.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/helpers.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/helpers.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/host_working_dir.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/host_working_dir.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/host_working_dir.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/host_working_dir.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/host_working_dir.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/host_working_dir.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/host_working_dir.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/host_working_dir.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/index.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/index.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/netflow.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/netflow.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow/__snapshots__/netflow_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/netflow/__snapshots__/netflow_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow/__snapshots__/netflow_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/netflow/__snapshots__/netflow_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/netflow/netflow_row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/parent_process_draggable.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_query_value.test.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/parse_query_value.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_query_value.test.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/parse_query_value.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_query_value.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/parse_query_value.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_query_value.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/parse_query_value.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_value.test.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/parse_value.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_value.test.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/parse_value.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_value.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/parse_value.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/parse_value.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/parse_value.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/plain_column_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/plain_row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_draggable.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/process_draggable.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_draggable.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/process_draggable.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_draggable.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/process_draggable.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_draggable.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/process_draggable.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_hash.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/process_hash.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_hash.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/process_hash.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_hash.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/process_hash.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/process_hash.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/process_hash.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_details.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_signature.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_signature.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_signature.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/__snapshots__/suricata_signature.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.test.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.test.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_links.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_refs.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_refs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_refs.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_refs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/suricata/suricata_signature.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/auth_ssh.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/auth_ssh.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/auth_ssh.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/auth_ssh.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_details.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_file_details.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_file_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_file_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_file_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/generic_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/package.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/package.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/package.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/__snapshots__/package.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/auth_ssh.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_file_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/generic_row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/package.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/package.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/package.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/package.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/package.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/package.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/package.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/package.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/system/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/system/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/system/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/unknown_column_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/user_host_working_dir.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_details.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_details.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_details.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_details.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_row_renderer.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_row_renderer.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_row_renderer.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_row_renderer.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_signature.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_signature.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_signature.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/__snapshots__/zeek_signature.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_row_renderer.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.tsx b/x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/renderers/zeek/zeek_signature.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/sort/__snapshots__/sort_indicator.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/body/sort/__snapshots__/sort_indicator.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/sort/__snapshots__/sort_indicator.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/body/sort/__snapshots__/sort_indicator.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/sort/index.ts b/x-pack/plugins/siem/public/components/timeline/body/sort/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/sort/index.ts
rename to x-pack/plugins/siem/public/components/timeline/body/sort/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/sort/sort_indicator.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/sort/sort_indicator.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/sort/sort_indicator.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/sort/sort_indicator.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/sort/sort_indicator.tsx b/x-pack/plugins/siem/public/components/timeline/body/sort/sort_indicator.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/sort/sort_indicator.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/sort/sort_indicator.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/stateful_body.test.tsx b/x-pack/plugins/siem/public/components/timeline/body/stateful_body.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/stateful_body.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/stateful_body.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/stateful_body.tsx b/x-pack/plugins/siem/public/components/timeline/body/stateful_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/stateful_body.tsx
rename to x-pack/plugins/siem/public/components/timeline/body/stateful_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/translations.ts b/x-pack/plugins/siem/public/components/timeline/body/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/body/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/body/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/data_providers.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/data_providers.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/data_providers.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/data_providers.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/empty.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/empty.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/empty.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/empty.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/provider.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/provider.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/provider.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/provider.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/providers.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/providers.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/__snapshots__/providers.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/data_providers/__snapshots__/providers.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/data_provider.ts b/x-pack/plugins/siem/public/components/timeline/data_providers/data_provider.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/data_provider.ts
rename to x-pack/plugins/siem/public/components/timeline/data_providers/data_provider.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/data_providers.test.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/data_providers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/data_providers.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/data_providers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/empty.test.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/empty.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/empty.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/empty.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/empty.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/empty.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/empty.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/empty.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/index.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/mock/mock_data_providers.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/mock/mock_data_providers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/mock/mock_data_providers.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/mock/mock_data_providers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider.test.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_badge.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider_badge.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_badge.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider_badge.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_actions.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_actions.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_actions.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_actions.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_and.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_and.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_and.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_and.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_and_drag_drop.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_and_drag_drop.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_and_drag_drop.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_and_drag_drop.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_badge.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_badge.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/provider_item_badge.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/provider_item_badge.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/providers.test.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/providers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/providers.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/providers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/providers.tsx b/x-pack/plugins/siem/public/components/timeline/data_providers/providers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/providers.tsx
rename to x-pack/plugins/siem/public/components/timeline/data_providers/providers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/data_providers/translations.ts b/x-pack/plugins/siem/public/components/timeline/data_providers/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/data_providers/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/data_providers/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/events.ts b/x-pack/plugins/siem/public/components/timeline/events.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/events.ts
rename to x-pack/plugins/siem/public/components/timeline/events.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/expandable_event/index.tsx b/x-pack/plugins/siem/public/components/timeline/expandable_event/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/expandable_event/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/expandable_event/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/expandable_event/translations.tsx b/x-pack/plugins/siem/public/components/timeline/expandable_event/translations.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/expandable_event/translations.tsx
rename to x-pack/plugins/siem/public/components/timeline/expandable_event/translations.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/fetch_kql_timeline.tsx b/x-pack/plugins/siem/public/components/timeline/fetch_kql_timeline.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/fetch_kql_timeline.tsx
rename to x-pack/plugins/siem/public/components/timeline/fetch_kql_timeline.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/footer/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/footer/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/footer/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/footer/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/footer/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/footer/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/footer/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/footer/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/footer/index.tsx b/x-pack/plugins/siem/public/components/timeline/footer/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/footer/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/footer/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/footer/last_updated.tsx b/x-pack/plugins/siem/public/components/timeline/footer/last_updated.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/footer/last_updated.tsx
rename to x-pack/plugins/siem/public/components/timeline/footer/last_updated.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/footer/mock.ts b/x-pack/plugins/siem/public/components/timeline/footer/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/footer/mock.ts
rename to x-pack/plugins/siem/public/components/timeline/footer/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/footer/translations.ts b/x-pack/plugins/siem/public/components/timeline/footer/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/footer/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/footer/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/header/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/timeline/header/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/header/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/timeline/header/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/header/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/header/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/header/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/header/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/header/index.tsx b/x-pack/plugins/siem/public/components/timeline/header/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/header/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/header/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/header/translations.ts b/x-pack/plugins/siem/public/components/timeline/header/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/header/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/header/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/helpers.test.tsx b/x-pack/plugins/siem/public/components/timeline/helpers.test.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/timeline/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/helpers.test.tsx
index 9fd71f071ec60..fc5a8ae924f82 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/helpers.test.tsx
+++ b/x-pack/plugins/siem/public/components/timeline/helpers.test.tsx
@@ -10,7 +10,7 @@ import { mockIndexPattern } from '../../mock';
import { mockDataProviders } from './data_providers/mock/mock_data_providers';
import { buildGlobalQuery, combineQueries } from './helpers';
import { mockBrowserFields } from '../../containers/source/mock';
-import { EsQueryConfig, Filter, esFilters } from '../../../../../../../src/plugins/data/public';
+import { EsQueryConfig, Filter, esFilters } from '../../../../../../src/plugins/data/public';
const cleanUpKqlQuery = (str: string) => str.replace(/\n/g, '').replace(/\s\s+/g, ' ');
const startDate = new Date('2018-03-23T18:49:23.132Z').valueOf();
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/helpers.tsx b/x-pack/plugins/siem/public/components/timeline/helpers.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/timeline/helpers.tsx
rename to x-pack/plugins/siem/public/components/timeline/helpers.tsx
index 611d08e61be22..ef9bbb4ec321a 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/helpers.tsx
+++ b/x-pack/plugins/siem/public/components/timeline/helpers.tsx
@@ -16,7 +16,7 @@ import {
Query,
EsQueryConfig,
Filter,
-} from '../../../../../../../src/plugins/data/public';
+} from '../../../../../../src/plugins/data/public';
const convertDateFieldToQuery = (field: string, value: string | number) =>
`${field}: ${isNumber(value) ? value : new Date(value).valueOf()}`;
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/index.tsx b/x-pack/plugins/siem/public/components/timeline/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/helpers.tsx b/x-pack/plugins/siem/public/components/timeline/properties/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/helpers.tsx
rename to x-pack/plugins/siem/public/components/timeline/properties/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/properties/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/properties/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/index.tsx b/x-pack/plugins/siem/public/components/timeline/properties/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/properties/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/notes_size.ts b/x-pack/plugins/siem/public/components/timeline/properties/notes_size.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/notes_size.ts
rename to x-pack/plugins/siem/public/components/timeline/properties/notes_size.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/properties_left.tsx b/x-pack/plugins/siem/public/components/timeline/properties/properties_left.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/properties_left.tsx
rename to x-pack/plugins/siem/public/components/timeline/properties/properties_left.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/properties_right.tsx b/x-pack/plugins/siem/public/components/timeline/properties/properties_right.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/properties_right.tsx
rename to x-pack/plugins/siem/public/components/timeline/properties/properties_right.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/styles.tsx b/x-pack/plugins/siem/public/components/timeline/properties/styles.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/styles.tsx
rename to x-pack/plugins/siem/public/components/timeline/properties/styles.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/translations.ts b/x-pack/plugins/siem/public/components/timeline/properties/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/properties/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/properties/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/query_bar/index.test.tsx b/x-pack/plugins/siem/public/components/timeline/query_bar/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/query_bar/index.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/query_bar/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/query_bar/index.tsx b/x-pack/plugins/siem/public/components/timeline/query_bar/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/timeline/query_bar/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/query_bar/index.tsx
index 7f662cdb2f1b4..f679b342c53fb 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/query_bar/index.tsx
+++ b/x-pack/plugins/siem/public/components/timeline/query_bar/index.tsx
@@ -17,7 +17,7 @@ import {
FilterManager,
SavedQuery,
SavedQueryTimeFilter,
-} from '../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../src/plugins/data/public';
import { BrowserFields } from '../../../containers/source';
import { convertKueryToElasticSearchQuery } from '../../../lib/keury';
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/refetch_timeline.tsx b/x-pack/plugins/siem/public/components/timeline/refetch_timeline.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/refetch_timeline.tsx
rename to x-pack/plugins/siem/public/components/timeline/refetch_timeline.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/helpers.test.tsx b/x-pack/plugins/siem/public/components/timeline/search_or_filter/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/helpers.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/search_or_filter/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/helpers.tsx b/x-pack/plugins/siem/public/components/timeline/search_or_filter/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/helpers.tsx
rename to x-pack/plugins/siem/public/components/timeline/search_or_filter/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/index.tsx b/x-pack/plugins/siem/public/components/timeline/search_or_filter/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/search_or_filter/index.tsx
index 87061bdbb5d02..07853e5eb64ef 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/index.tsx
+++ b/x-pack/plugins/siem/public/components/timeline/search_or_filter/index.tsx
@@ -10,7 +10,7 @@ import { connect, ConnectedProps } from 'react-redux';
import { Dispatch } from 'redux';
import deepEqual from 'fast-deep-equal';
-import { Filter, IIndexPattern } from '../../../../../../../../src/plugins/data/public';
+import { Filter, IIndexPattern } from '../../../../../../../src/plugins/data/public';
import { BrowserFields } from '../../../containers/source';
import { convertKueryToElasticSearchQuery } from '../../../lib/keury';
import {
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/pick_events.tsx b/x-pack/plugins/siem/public/components/timeline/search_or_filter/pick_events.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/pick_events.tsx
rename to x-pack/plugins/siem/public/components/timeline/search_or_filter/pick_events.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/search_or_filter.tsx b/x-pack/plugins/siem/public/components/timeline/search_or_filter/search_or_filter.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/search_or_filter.tsx
rename to x-pack/plugins/siem/public/components/timeline/search_or_filter/search_or_filter.tsx
index 7bdd92e745f21..c0cef0c5fdee1 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/search_or_filter.tsx
+++ b/x-pack/plugins/siem/public/components/timeline/search_or_filter/search_or_filter.tsx
@@ -8,7 +8,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiSuperSelect, EuiToolTip } from '@elastic/
import React from 'react';
import styled, { createGlobalStyle } from 'styled-components';
-import { Filter, IIndexPattern } from '../../../../../../../../src/plugins/data/public';
+import { Filter, IIndexPattern } from '../../../../../../../src/plugins/data/public';
import { BrowserFields } from '../../../containers/source';
import { KueryFilterQuery, KueryFilterQueryKind } from '../../../store';
import { KqlMode, EventType } from '../../../store/timeline/model';
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/translations.ts b/x-pack/plugins/siem/public/components/timeline/search_or_filter/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_or_filter/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/search_or_filter/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_super_select/index.tsx b/x-pack/plugins/siem/public/components/timeline/search_super_select/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_super_select/index.tsx
rename to x-pack/plugins/siem/public/components/timeline/search_super_select/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/search_super_select/translations.ts b/x-pack/plugins/siem/public/components/timeline/search_super_select/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/search_super_select/translations.ts
rename to x-pack/plugins/siem/public/components/timeline/search_super_select/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/styles.tsx b/x-pack/plugins/siem/public/components/timeline/styles.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/styles.tsx
rename to x-pack/plugins/siem/public/components/timeline/styles.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/timeline.test.tsx b/x-pack/plugins/siem/public/components/timeline/timeline.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/timeline.test.tsx
rename to x-pack/plugins/siem/public/components/timeline/timeline.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/timeline.tsx b/x-pack/plugins/siem/public/components/timeline/timeline.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/timeline/timeline.tsx
rename to x-pack/plugins/siem/public/components/timeline/timeline.tsx
index 58bbbef328ddf..b64a577a3c09e 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/timeline.tsx
+++ b/x-pack/plugins/siem/public/components/timeline/timeline.tsx
@@ -34,7 +34,7 @@ import { TimelineHeader } from './header';
import { calculateBodyHeight, combineQueries } from './helpers';
import { TimelineRefetch } from './refetch_timeline';
import { ManageTimelineContext } from './timeline_context';
-import { esQuery, Filter, IIndexPattern } from '../../../../../../../src/plugins/data/public';
+import { esQuery, Filter, IIndexPattern } from '../../../../../../src/plugins/data/public';
const WrappedByAutoSizer = styled.div`
width: 100%;
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/timeline_context.tsx b/x-pack/plugins/siem/public/components/timeline/timeline_context.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/timeline/timeline_context.tsx
rename to x-pack/plugins/siem/public/components/timeline/timeline_context.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/__snapshots__/modal_all_errors.test.tsx.snap b/x-pack/plugins/siem/public/components/toasters/__snapshots__/modal_all_errors.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/__snapshots__/modal_all_errors.test.tsx.snap
rename to x-pack/plugins/siem/public/components/toasters/__snapshots__/modal_all_errors.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/errors.ts b/x-pack/plugins/siem/public/components/toasters/errors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/errors.ts
rename to x-pack/plugins/siem/public/components/toasters/errors.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/index.test.tsx b/x-pack/plugins/siem/public/components/toasters/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/index.test.tsx
rename to x-pack/plugins/siem/public/components/toasters/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/index.tsx b/x-pack/plugins/siem/public/components/toasters/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/index.tsx
rename to x-pack/plugins/siem/public/components/toasters/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/modal_all_errors.test.tsx b/x-pack/plugins/siem/public/components/toasters/modal_all_errors.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/modal_all_errors.test.tsx
rename to x-pack/plugins/siem/public/components/toasters/modal_all_errors.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/modal_all_errors.tsx b/x-pack/plugins/siem/public/components/toasters/modal_all_errors.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/modal_all_errors.tsx
rename to x-pack/plugins/siem/public/components/toasters/modal_all_errors.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/translations.ts b/x-pack/plugins/siem/public/components/toasters/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/translations.ts
rename to x-pack/plugins/siem/public/components/toasters/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/utils.test.ts b/x-pack/plugins/siem/public/components/toasters/utils.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/utils.test.ts
rename to x-pack/plugins/siem/public/components/toasters/utils.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/toasters/utils.ts b/x-pack/plugins/siem/public/components/toasters/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/toasters/utils.ts
rename to x-pack/plugins/siem/public/components/toasters/utils.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/truncatable_text/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/truncatable_text/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/truncatable_text/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/truncatable_text/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/truncatable_text/index.test.tsx b/x-pack/plugins/siem/public/components/truncatable_text/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/truncatable_text/index.test.tsx
rename to x-pack/plugins/siem/public/components/truncatable_text/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/truncatable_text/index.tsx b/x-pack/plugins/siem/public/components/truncatable_text/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/truncatable_text/index.tsx
rename to x-pack/plugins/siem/public/components/truncatable_text/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/constants.ts b/x-pack/plugins/siem/public/components/url_state/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/constants.ts
rename to x-pack/plugins/siem/public/components/url_state/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/helpers.test.ts b/x-pack/plugins/siem/public/components/url_state/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/helpers.test.ts
rename to x-pack/plugins/siem/public/components/url_state/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/helpers.ts b/x-pack/plugins/siem/public/components/url_state/helpers.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/url_state/helpers.ts
rename to x-pack/plugins/siem/public/components/url_state/helpers.ts
index d085af91da1f0..ee68c3873d7e5 100644
--- a/x-pack/legacy/plugins/siem/public/components/url_state/helpers.ts
+++ b/x-pack/plugins/siem/public/components/url_state/helpers.ts
@@ -9,8 +9,8 @@ import { parse, stringify } from 'query-string';
import { decode, encode } from 'rison-node';
import * as H from 'history';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
-import { url } from '../../../../../../../src/plugins/kibana_utils/public';
+import { Query, Filter } from '../../../../../../src/plugins/data/public';
+import { url } from '../../../../../../src/plugins/kibana_utils/public';
import { SiemPageName } from '../../pages/home/types';
import { inputsSelectors, State, timelineSelectors } from '../../store';
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/index.test.tsx b/x-pack/plugins/siem/public/components/url_state/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/index.test.tsx
rename to x-pack/plugins/siem/public/components/url_state/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/index.tsx b/x-pack/plugins/siem/public/components/url_state/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/index.tsx
rename to x-pack/plugins/siem/public/components/url_state/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/index_mocked.test.tsx b/x-pack/plugins/siem/public/components/url_state/index_mocked.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/index_mocked.test.tsx
rename to x-pack/plugins/siem/public/components/url_state/index_mocked.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/initialize_redux_by_url.tsx b/x-pack/plugins/siem/public/components/url_state/initialize_redux_by_url.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/components/url_state/initialize_redux_by_url.tsx
rename to x-pack/plugins/siem/public/components/url_state/initialize_redux_by_url.tsx
index 4838fb4499b87..54a196d1b8161 100644
--- a/x-pack/legacy/plugins/siem/public/components/url_state/initialize_redux_by_url.tsx
+++ b/x-pack/plugins/siem/public/components/url_state/initialize_redux_by_url.tsx
@@ -7,7 +7,7 @@
import { get, isEmpty } from 'lodash/fp';
import { Dispatch } from 'redux';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
+import { Query, Filter } from '../../../../../../src/plugins/data/public';
import { inputsActions } from '../../store/actions';
import { InputsModelId, TimeRangeKinds } from '../../store/inputs/constants';
import {
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/normalize_time_range.test.ts b/x-pack/plugins/siem/public/components/url_state/normalize_time_range.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/normalize_time_range.test.ts
rename to x-pack/plugins/siem/public/components/url_state/normalize_time_range.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/normalize_time_range.ts b/x-pack/plugins/siem/public/components/url_state/normalize_time_range.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/normalize_time_range.ts
rename to x-pack/plugins/siem/public/components/url_state/normalize_time_range.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/test_dependencies.ts b/x-pack/plugins/siem/public/components/url_state/test_dependencies.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/components/url_state/test_dependencies.ts
rename to x-pack/plugins/siem/public/components/url_state/test_dependencies.ts
index dc1b8d428bb20..974bee53bc2ba 100644
--- a/x-pack/legacy/plugins/siem/public/components/url_state/test_dependencies.ts
+++ b/x-pack/plugins/siem/public/components/url_state/test_dependencies.ts
@@ -15,7 +15,7 @@ import { HostsTableType } from '../../store/hosts/model';
import { CONSTANTS } from './constants';
import { dispatchSetInitialStateFromUrl } from './initialize_redux_by_url';
import { UrlStateContainerPropTypes, LocationTypes } from './types';
-import { Query } from '../../../../../../../src/plugins/data/public';
+import { Query } from '../../../../../../src/plugins/data/public';
type Action = 'PUSH' | 'POP' | 'REPLACE';
const pop: Action = 'POP';
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/types.ts b/x-pack/plugins/siem/public/components/url_state/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/types.ts
rename to x-pack/plugins/siem/public/components/url_state/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/use_url_state.tsx b/x-pack/plugins/siem/public/components/url_state/use_url_state.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/url_state/use_url_state.tsx
rename to x-pack/plugins/siem/public/components/url_state/use_url_state.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar.test.tsx.snap b/x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar.test.tsx.snap
rename to x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_action.test.tsx.snap b/x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_action.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_action.test.tsx.snap
rename to x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_action.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_group.test.tsx.snap b/x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_group.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_group.test.tsx.snap
rename to x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_group.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_section.test.tsx.snap b/x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_section.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_section.test.tsx.snap
rename to x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_section.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_text.test.tsx.snap b/x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_text.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_text.test.tsx.snap
rename to x-pack/plugins/siem/public/components/utility_bar/__snapshots__/utility_bar_text.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/index.ts b/x-pack/plugins/siem/public/components/utility_bar/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/index.ts
rename to x-pack/plugins/siem/public/components/utility_bar/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/styles.tsx b/x-pack/plugins/siem/public/components/utility_bar/styles.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/styles.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/styles.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar.test.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar.test.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_action.test.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_action.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_action.test.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_action.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_action.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_action.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_action.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_action.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_group.test.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_group.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_group.test.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_group.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_group.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_group.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_group.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_group.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_section.test.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_section.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_section.test.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_section.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_section.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_section.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_section.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_section.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_text.test.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_text.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_text.test.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_text.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_text.tsx b/x-pack/plugins/siem/public/components/utility_bar/utility_bar_text.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utility_bar/utility_bar_text.tsx
rename to x-pack/plugins/siem/public/components/utility_bar/utility_bar_text.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/utils.ts b/x-pack/plugins/siem/public/components/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/utils.ts
rename to x-pack/plugins/siem/public/components/utils.ts
diff --git a/x-pack/legacy/plugins/siem/public/components/with_hover_actions/index.tsx b/x-pack/plugins/siem/public/components/with_hover_actions/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/with_hover_actions/index.tsx
rename to x-pack/plugins/siem/public/components/with_hover_actions/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/wrapper_page/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/components/wrapper_page/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/wrapper_page/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/components/wrapper_page/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/components/wrapper_page/index.test.tsx b/x-pack/plugins/siem/public/components/wrapper_page/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/wrapper_page/index.test.tsx
rename to x-pack/plugins/siem/public/components/wrapper_page/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/components/wrapper_page/index.tsx b/x-pack/plugins/siem/public/components/wrapper_page/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/components/wrapper_page/index.tsx
rename to x-pack/plugins/siem/public/components/wrapper_page/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/histogram_configs.ts b/x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/histogram_configs.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/histogram_configs.ts
rename to x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/histogram_configs.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/index.tsx b/x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/index.tsx
rename to x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/translations.ts b/x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/translations.ts
rename to x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/types.ts b/x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/types.ts
rename to x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/utils.ts b/x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/utils.ts
rename to x-pack/plugins/siem/public/containers/anomalies/anomalies_query_tab_body/utils.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/authentications/index.gql_query.ts b/x-pack/plugins/siem/public/containers/authentications/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/authentications/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/authentications/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/authentications/index.tsx b/x-pack/plugins/siem/public/containers/authentications/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/authentications/index.tsx
rename to x-pack/plugins/siem/public/containers/authentications/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/api.ts b/x-pack/plugins/siem/public/containers/case/api.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/containers/case/api.ts
rename to x-pack/plugins/siem/public/containers/case/api.ts
index 98bb1b470d561..249c98aca0b25 100644
--- a/x-pack/legacy/plugins/siem/public/containers/case/api.ts
+++ b/x-pack/plugins/siem/public/containers/case/api.ts
@@ -10,7 +10,7 @@ import {
CaseRequest,
CommentRequest,
CommentResponse,
-} from '../../../../../../plugins/case/common/api';
+} from '../../../../case/common/api';
import { KibanaServices } from '../../lib/kibana';
import { AllCases, Case, Comment, FetchCasesProps, SortFieldCase } from './types';
import { CASES_URL } from './constants';
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/constants.ts b/x-pack/plugins/siem/public/containers/case/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/constants.ts
rename to x-pack/plugins/siem/public/containers/case/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/translations.ts b/x-pack/plugins/siem/public/containers/case/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/translations.ts
rename to x-pack/plugins/siem/public/containers/case/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/types.ts b/x-pack/plugins/siem/public/containers/case/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/types.ts
rename to x-pack/plugins/siem/public/containers/case/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_get_case.tsx b/x-pack/plugins/siem/public/containers/case/use_get_case.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_get_case.tsx
rename to x-pack/plugins/siem/public/containers/case/use_get_case.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_get_cases.tsx b/x-pack/plugins/siem/public/containers/case/use_get_cases.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_get_cases.tsx
rename to x-pack/plugins/siem/public/containers/case/use_get_cases.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_get_tags.tsx b/x-pack/plugins/siem/public/containers/case/use_get_tags.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_get_tags.tsx
rename to x-pack/plugins/siem/public/containers/case/use_get_tags.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx b/x-pack/plugins/siem/public/containers/case/use_post_case.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx
rename to x-pack/plugins/siem/public/containers/case/use_post_case.tsx
index 5cd0911fae81a..b67a03c6b8ff8 100644
--- a/x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx
+++ b/x-pack/plugins/siem/public/containers/case/use_post_case.tsx
@@ -6,7 +6,7 @@
import { useReducer, useCallback } from 'react';
-import { CaseRequest } from '../../../../../../plugins/case/common/api';
+import { CaseRequest } from '../../../../case/common/api';
import { errorToToaster, useStateToaster } from '../../components/toasters';
import { postCase } from './api';
import { FETCH_FAILURE, FETCH_INIT, FETCH_SUCCESS } from './constants';
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_post_comment.tsx b/x-pack/plugins/siem/public/containers/case/use_post_comment.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_post_comment.tsx
rename to x-pack/plugins/siem/public/containers/case/use_post_comment.tsx
index 1467c691f547e..a71062c08a2e6 100644
--- a/x-pack/legacy/plugins/siem/public/containers/case/use_post_comment.tsx
+++ b/x-pack/plugins/siem/public/containers/case/use_post_comment.tsx
@@ -6,7 +6,7 @@
import { useReducer, useCallback } from 'react';
-import { CommentRequest } from '../../../../../../plugins/case/common/api';
+import { CommentRequest } from '../../../../case/common/api';
import { errorToToaster, useStateToaster } from '../../components/toasters';
import { postComment } from './api';
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_update_case.tsx b/x-pack/plugins/siem/public/containers/case/use_update_case.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_update_case.tsx
rename to x-pack/plugins/siem/public/containers/case/use_update_case.tsx
index 594677aefe245..95d81f8ca9e90 100644
--- a/x-pack/legacy/plugins/siem/public/containers/case/use_update_case.tsx
+++ b/x-pack/plugins/siem/public/containers/case/use_update_case.tsx
@@ -6,7 +6,7 @@
import { useReducer, useCallback } from 'react';
-import { CaseRequest } from '../../../../../../plugins/case/common/api';
+import { CaseRequest } from '../../../../case/common/api';
import { errorToToaster, useStateToaster } from '../../components/toasters';
import { patchCase } from './api';
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_update_comment.tsx b/x-pack/plugins/siem/public/containers/case/use_update_comment.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/case/use_update_comment.tsx
rename to x-pack/plugins/siem/public/containers/case/use_update_comment.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/case/utils.ts b/x-pack/plugins/siem/public/containers/case/utils.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/containers/case/utils.ts
rename to x-pack/plugins/siem/public/containers/case/utils.ts
index 6a0da7618c383..7ad4b1a21ee5d 100644
--- a/x-pack/legacy/plugins/siem/public/containers/case/utils.ts
+++ b/x-pack/plugins/siem/public/containers/case/utils.ts
@@ -17,7 +17,7 @@ import {
throwErrors,
CommentResponse,
CommentResponseRt,
-} from '../../../../../../plugins/case/common/api';
+} from '../../../../case/common/api';
import { ToasterError } from '../../components/toasters';
import { AllCases, Case } from './types';
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/__mocks__/api.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/__mocks__/api.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/__mocks__/api.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/__mocks__/api.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/api.test.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/api.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/api.test.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/api.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/api.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/api.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/api.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/api.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.test.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.test.tsx
index cad78ac565903..8c688fe5615f0 100644
--- a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.test.tsx
+++ b/x-pack/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.test.tsx
@@ -6,7 +6,7 @@
import { renderHook, act } from '@testing-library/react-hooks';
-import { defaultIndexPattern } from '../../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../../common/constants';
import { useApolloClient } from '../../../utils/apollo_context';
import { mocksSource } from '../../source/mock';
@@ -25,7 +25,7 @@ describe('useFetchIndexPatterns', () => {
query: () => Promise.resolve(mocksSource[0].result),
}));
const { result, waitForNextUpdate } = renderHook(() =>
- useFetchIndexPatterns(defaultIndexPattern)
+ useFetchIndexPatterns(DEFAULT_INDEX_PATTERN)
);
await waitForNextUpdate();
await waitForNextUpdate();
@@ -429,7 +429,7 @@ describe('useFetchIndexPatterns', () => {
query: () => Promise.reject(new Error('Something went wrong')),
}));
const { result, waitForNextUpdate } = renderHook(() =>
- useFetchIndexPatterns(defaultIndexPattern)
+ useFetchIndexPatterns(DEFAULT_INDEX_PATTERN)
);
await waitForNextUpdate();
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.tsx
index c5aefac15f48e..7e222045a1a3b 100644
--- a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.tsx
+++ b/x-pack/plugins/siem/public/containers/detection_engine/rules/fetch_index_patterns.tsx
@@ -8,7 +8,7 @@ import { isEmpty, get } from 'lodash/fp';
import { useEffect, useState, Dispatch, SetStateAction } from 'react';
import deepEqual from 'fast-deep-equal';
-import { IIndexPattern } from '../../../../../../../../src/plugins/data/public';
+import { IIndexPattern } from '../../../../../../../src/plugins/data/public';
import {
BrowserFields,
getBrowserFields,
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/index.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/index.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/mock.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/mock.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/persist_rule.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/persist_rule.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/persist_rule.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/persist_rule.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/persist_rule.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/persist_rule.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/persist_rule.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/persist_rule.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/translations.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/translations.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/types.ts b/x-pack/plugins/siem/public/containers/detection_engine/rules/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/types.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_pre_packaged_rules.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule_status.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule_status.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule_status.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule_status.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule_status.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule_status.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rule_status.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_rule_status.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rules.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_rules.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rules.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_rules.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rules.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_rules.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rules.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_rules.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_tags.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_tags.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_tags.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_tags.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_tags.tsx b/x-pack/plugins/siem/public/containers/detection_engine/rules/use_tags.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_tags.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/rules/use_tags.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/__mocks__/api.ts b/x-pack/plugins/siem/public/containers/detection_engine/signals/__mocks__/api.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/__mocks__/api.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/__mocks__/api.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/api.test.ts b/x-pack/plugins/siem/public/containers/detection_engine/signals/api.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/api.test.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/api.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/api.ts b/x-pack/plugins/siem/public/containers/detection_engine/signals/api.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/api.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/api.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/mock.ts b/x-pack/plugins/siem/public/containers/detection_engine/signals/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/mock.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/translations.ts b/x-pack/plugins/siem/public/containers/detection_engine/signals/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/translations.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/types.ts b/x-pack/plugins/siem/public/containers/detection_engine/signals/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/types.ts
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.tsx b/x-pack/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/use_privilege_user.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_query.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/signals/use_query.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_query.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/use_query.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_query.tsx b/x-pack/plugins/siem/public/containers/detection_engine/signals/use_query.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_query.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/use_query.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_signal_index.test.tsx b/x-pack/plugins/siem/public/containers/detection_engine/signals/use_signal_index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_signal_index.test.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/use_signal_index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_signal_index.tsx b/x-pack/plugins/siem/public/containers/detection_engine/signals/use_signal_index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/detection_engine/signals/use_signal_index.tsx
rename to x-pack/plugins/siem/public/containers/detection_engine/signals/use_signal_index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/errors/index.test.tsx b/x-pack/plugins/siem/public/containers/errors/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/errors/index.test.tsx
rename to x-pack/plugins/siem/public/containers/errors/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/errors/index.tsx b/x-pack/plugins/siem/public/containers/errors/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/errors/index.tsx
rename to x-pack/plugins/siem/public/containers/errors/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/errors/translations.ts b/x-pack/plugins/siem/public/containers/errors/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/errors/translations.ts
rename to x-pack/plugins/siem/public/containers/errors/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/index.ts b/x-pack/plugins/siem/public/containers/events/last_event_time/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/events/last_event_time/index.ts
rename to x-pack/plugins/siem/public/containers/events/last_event_time/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/last_event_time.gql_query.ts b/x-pack/plugins/siem/public/containers/events/last_event_time/last_event_time.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/events/last_event_time/last_event_time.gql_query.ts
rename to x-pack/plugins/siem/public/containers/events/last_event_time/last_event_time.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts b/x-pack/plugins/siem/public/containers/events/last_event_time/mock.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts
rename to x-pack/plugins/siem/public/containers/events/last_event_time/mock.ts
index ca8786077851f..43f55dfcf2777 100644
--- a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts
+++ b/x-pack/plugins/siem/public/containers/events/last_event_time/mock.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../../common/constants';
import { GetLastEventTimeQuery, LastEventIndexKey } from '../../../graphql/types';
import { LastEventTimeGqlQuery } from './last_event_time.gql_query';
@@ -43,7 +43,7 @@ export const mockLastEventTimeQuery: MockLastEventTimeQuery[] = [
sourceId: 'default',
indexKey: LastEventIndexKey.hosts,
details: {},
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
},
},
result: {
diff --git a/x-pack/legacy/plugins/siem/public/containers/global_time/index.tsx b/x-pack/plugins/siem/public/containers/global_time/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/global_time/index.tsx
rename to x-pack/plugins/siem/public/containers/global_time/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/helpers.test.ts b/x-pack/plugins/siem/public/containers/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/helpers.test.ts
rename to x-pack/plugins/siem/public/containers/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/helpers.ts b/x-pack/plugins/siem/public/containers/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/helpers.ts
rename to x-pack/plugins/siem/public/containers/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/first_last_seen.gql_query.ts b/x-pack/plugins/siem/public/containers/hosts/first_last_seen/first_last_seen.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/first_last_seen.gql_query.ts
rename to x-pack/plugins/siem/public/containers/hosts/first_last_seen/first_last_seen.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/index.ts b/x-pack/plugins/siem/public/containers/hosts/first_last_seen/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/index.ts
rename to x-pack/plugins/siem/public/containers/hosts/first_last_seen/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts b/x-pack/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
similarity index 91%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
rename to x-pack/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
index 2c9d418763e8e..f59df84dacc1b 100644
--- a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
+++ b/x-pack/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../../common/constants';
import { GetHostFirstLastSeenQuery } from '../../../graphql/types';
import { HostFirstLastSeenGqlQuery } from './first_last_seen.gql_query';
@@ -34,7 +34,7 @@ export const mockFirstLastSeenHostQuery: MockedProvidedQuery[] = [
variables: {
sourceId: 'default',
hostName: 'kibana-siem',
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
},
},
result: {
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/hosts_table.gql_query.ts b/x-pack/plugins/siem/public/containers/hosts/hosts_table.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/hosts_table.gql_query.ts
rename to x-pack/plugins/siem/public/containers/hosts/hosts_table.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/index.tsx b/x-pack/plugins/siem/public/containers/hosts/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/index.tsx
rename to x-pack/plugins/siem/public/containers/hosts/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/overview/host_overview.gql_query.ts b/x-pack/plugins/siem/public/containers/hosts/overview/host_overview.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/overview/host_overview.gql_query.ts
rename to x-pack/plugins/siem/public/containers/hosts/overview/host_overview.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/overview/index.tsx b/x-pack/plugins/siem/public/containers/hosts/overview/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/hosts/overview/index.tsx
rename to x-pack/plugins/siem/public/containers/hosts/overview/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/ip_overview/index.gql_query.ts b/x-pack/plugins/siem/public/containers/ip_overview/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/ip_overview/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/ip_overview/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/ip_overview/index.tsx b/x-pack/plugins/siem/public/containers/ip_overview/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/ip_overview/index.tsx
rename to x-pack/plugins/siem/public/containers/ip_overview/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.gql_query.tsx b/x-pack/plugins/siem/public/containers/kpi_host_details/index.gql_query.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.gql_query.tsx
rename to x-pack/plugins/siem/public/containers/kpi_host_details/index.gql_query.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.tsx b/x-pack/plugins/siem/public/containers/kpi_host_details/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.tsx
rename to x-pack/plugins/siem/public/containers/kpi_host_details/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.gql_query.ts b/x-pack/plugins/siem/public/containers/kpi_hosts/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/kpi_hosts/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.tsx b/x-pack/plugins/siem/public/containers/kpi_hosts/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.tsx
rename to x-pack/plugins/siem/public/containers/kpi_hosts/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_network/index.gql_query.ts b/x-pack/plugins/siem/public/containers/kpi_network/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/kpi_network/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/kpi_network/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_network/index.tsx b/x-pack/plugins/siem/public/containers/kpi_network/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/kpi_network/index.tsx
rename to x-pack/plugins/siem/public/containers/kpi_network/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/kuery_autocompletion/index.tsx b/x-pack/plugins/siem/public/containers/kuery_autocompletion/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/containers/kuery_autocompletion/index.tsx
rename to x-pack/plugins/siem/public/containers/kuery_autocompletion/index.tsx
index af4eb1ff7a5e1..6120538a01e78 100644
--- a/x-pack/legacy/plugins/siem/public/containers/kuery_autocompletion/index.tsx
+++ b/x-pack/plugins/siem/public/containers/kuery_autocompletion/index.tsx
@@ -5,7 +5,7 @@
*/
import React, { useState } from 'react';
-import { QuerySuggestion, IIndexPattern } from '../../../../../../../src/plugins/data/public';
+import { QuerySuggestion, IIndexPattern } from '../../../../../../src/plugins/data/public';
import { useKibana } from '../../lib/kibana';
type RendererResult = React.ReactElement | null;
diff --git a/x-pack/legacy/plugins/siem/public/containers/matrix_histogram/index.gql_query.ts b/x-pack/plugins/siem/public/containers/matrix_histogram/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/matrix_histogram/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/matrix_histogram/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/matrix_histogram/index.test.tsx b/x-pack/plugins/siem/public/containers/matrix_histogram/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/matrix_histogram/index.test.tsx
rename to x-pack/plugins/siem/public/containers/matrix_histogram/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/matrix_histogram/index.ts b/x-pack/plugins/siem/public/containers/matrix_histogram/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/matrix_histogram/index.ts
rename to x-pack/plugins/siem/public/containers/matrix_histogram/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_dns/index.gql_query.ts b/x-pack/plugins/siem/public/containers/network_dns/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_dns/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/network_dns/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_dns/index.tsx b/x-pack/plugins/siem/public/containers/network_dns/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_dns/index.tsx
rename to x-pack/plugins/siem/public/containers/network_dns/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_http/index.gql_query.ts b/x-pack/plugins/siem/public/containers/network_http/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_http/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/network_http/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_http/index.tsx b/x-pack/plugins/siem/public/containers/network_http/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_http/index.tsx
rename to x-pack/plugins/siem/public/containers/network_http/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.gql_query.ts b/x-pack/plugins/siem/public/containers/network_top_countries/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/network_top_countries/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.tsx b/x-pack/plugins/siem/public/containers/network_top_countries/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.tsx
rename to x-pack/plugins/siem/public/containers/network_top_countries/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.gql_query.ts b/x-pack/plugins/siem/public/containers/network_top_n_flow/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/network_top_n_flow/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.tsx b/x-pack/plugins/siem/public/containers/network_top_n_flow/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.tsx
rename to x-pack/plugins/siem/public/containers/network_top_n_flow/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.gql_query.ts b/x-pack/plugins/siem/public/containers/overview/overview_host/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/overview/overview_host/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.tsx b/x-pack/plugins/siem/public/containers/overview/overview_host/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.tsx
rename to x-pack/plugins/siem/public/containers/overview/overview_host/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.gql_query.ts b/x-pack/plugins/siem/public/containers/overview/overview_network/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/overview/overview_network/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.tsx b/x-pack/plugins/siem/public/containers/overview/overview_network/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.tsx
rename to x-pack/plugins/siem/public/containers/overview/overview_network/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/query_template.tsx b/x-pack/plugins/siem/public/containers/query_template.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/query_template.tsx
rename to x-pack/plugins/siem/public/containers/query_template.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/query_template_paginated.tsx b/x-pack/plugins/siem/public/containers/query_template_paginated.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/query_template_paginated.tsx
rename to x-pack/plugins/siem/public/containers/query_template_paginated.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/source/index.gql_query.ts b/x-pack/plugins/siem/public/containers/source/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/source/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/source/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/source/index.test.tsx b/x-pack/plugins/siem/public/containers/source/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/source/index.test.tsx
rename to x-pack/plugins/siem/public/containers/source/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/source/index.tsx b/x-pack/plugins/siem/public/containers/source/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/source/index.tsx
rename to x-pack/plugins/siem/public/containers/source/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/source/mock.ts b/x-pack/plugins/siem/public/containers/source/mock.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/containers/source/mock.ts
rename to x-pack/plugins/siem/public/containers/source/mock.ts
index 738c1681f40af..b1fb31338e6c6 100644
--- a/x-pack/legacy/plugins/siem/public/containers/source/mock.ts
+++ b/x-pack/plugins/siem/public/containers/source/mock.ts
@@ -6,7 +6,7 @@
import { BrowserFields } from '.';
import { sourceQuery } from './index.gql_query';
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
export const mocksSource = [
{
@@ -14,7 +14,7 @@ export const mocksSource = [
query: sourceQuery,
variables: {
sourceId: 'default',
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
},
},
result: {
@@ -333,7 +333,7 @@ export const mocksSource = [
'event.end contains the date when the event ended or when the activity was last observed.',
example: null,
format: '',
- indexes: defaultIndexPattern,
+ indexes: DEFAULT_INDEX_PATTERN,
name: 'event.end',
searchable: true,
type: 'date',
@@ -661,7 +661,7 @@ export const mockBrowserFields: BrowserFields = {
'event.end contains the date when the event ended or when the activity was last observed.',
example: null,
format: '',
- indexes: defaultIndexPattern,
+ indexes: DEFAULT_INDEX_PATTERN,
name: 'event.end',
searchable: true,
type: 'date',
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/all/index.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/all/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/all/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/all/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/all/index.tsx b/x-pack/plugins/siem/public/containers/timeline/all/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/all/index.tsx
rename to x-pack/plugins/siem/public/containers/timeline/all/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/delete/persist.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/delete/persist.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/delete/persist.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/delete/persist.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/details/index.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/details/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/details/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/details/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/details/index.tsx b/x-pack/plugins/siem/public/containers/timeline/details/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/details/index.tsx
rename to x-pack/plugins/siem/public/containers/timeline/details/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/favorite/persist.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/favorite/persist.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/favorite/persist.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/favorite/persist.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/index.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx b/x-pack/plugins/siem/public/containers/timeline/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx
rename to x-pack/plugins/siem/public/containers/timeline/index.tsx
index ccd8babd41e68..8a7859833d933 100644
--- a/x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx
+++ b/x-pack/plugins/siem/public/containers/timeline/index.tsx
@@ -11,7 +11,7 @@ import { Query } from 'react-apollo';
import { compose, Dispatch } from 'redux';
import { connect, ConnectedProps } from 'react-redux';
-import { IIndexPattern } from '../../../../../../../src/plugins/data/common/index_patterns';
+import { IIndexPattern } from '../../../../../../src/plugins/data/common/index_patterns';
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
import {
GetTimelineQuery,
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/notes/persist.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/notes/persist.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/notes/persist.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/notes/persist.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/one/index.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/one/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/one/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/one/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/persist.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/persist.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/persist.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/persist.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/pinned_event/persist.gql_query.ts b/x-pack/plugins/siem/public/containers/timeline/pinned_event/persist.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/timeline/pinned_event/persist.gql_query.ts
rename to x-pack/plugins/siem/public/containers/timeline/pinned_event/persist.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/tls/index.gql_query.ts b/x-pack/plugins/siem/public/containers/tls/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/tls/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/tls/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/tls/index.tsx b/x-pack/plugins/siem/public/containers/tls/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/tls/index.tsx
rename to x-pack/plugins/siem/public/containers/tls/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.gql_query.ts b/x-pack/plugins/siem/public/containers/uncommon_processes/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/uncommon_processes/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.tsx b/x-pack/plugins/siem/public/containers/uncommon_processes/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.tsx
rename to x-pack/plugins/siem/public/containers/uncommon_processes/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/containers/users/index.gql_query.ts b/x-pack/plugins/siem/public/containers/users/index.gql_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/users/index.gql_query.ts
rename to x-pack/plugins/siem/public/containers/users/index.gql_query.ts
diff --git a/x-pack/legacy/plugins/siem/public/containers/users/index.tsx b/x-pack/plugins/siem/public/containers/users/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/containers/users/index.tsx
rename to x-pack/plugins/siem/public/containers/users/index.tsx
diff --git a/x-pack/plugins/siem/public/core_types.ts b/x-pack/plugins/siem/public/core_types.ts
new file mode 100644
index 0000000000000..81787800bf3ad
--- /dev/null
+++ b/x-pack/plugins/siem/public/core_types.ts
@@ -0,0 +1,13 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+// TODO These can be removed and replaced after https://github.com/elastic/kibana/issues/58327
+export type AppMountParameters = any;
+export type ChromeBreadcrumb = any;
+export type CoreSetup = any;
+export type CoreStart = any;
+export type PluginInitializerContext = any;
+export class Plugin {}
diff --git a/x-pack/legacy/plugins/siem/public/graphql/introspection.json b/x-pack/plugins/siem/public/graphql/introspection.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/graphql/introspection.json
rename to x-pack/plugins/siem/public/graphql/introspection.json
diff --git a/x-pack/legacy/plugins/siem/public/graphql/types.ts b/x-pack/plugins/siem/public/graphql/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/graphql/types.ts
rename to x-pack/plugins/siem/public/graphql/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/hooks/api/__mock__/api.tsx b/x-pack/plugins/siem/public/hooks/api/__mock__/api.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/hooks/api/__mock__/api.tsx
rename to x-pack/plugins/siem/public/hooks/api/__mock__/api.tsx
diff --git a/x-pack/legacy/plugins/siem/public/hooks/api/api.tsx b/x-pack/plugins/siem/public/hooks/api/api.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/hooks/api/api.tsx
rename to x-pack/plugins/siem/public/hooks/api/api.tsx
diff --git a/x-pack/legacy/plugins/siem/public/hooks/api/helpers.test.tsx b/x-pack/plugins/siem/public/hooks/api/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/hooks/api/helpers.test.tsx
rename to x-pack/plugins/siem/public/hooks/api/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/hooks/api/helpers.tsx b/x-pack/plugins/siem/public/hooks/api/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/hooks/api/helpers.tsx
rename to x-pack/plugins/siem/public/hooks/api/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/hooks/translations.ts b/x-pack/plugins/siem/public/hooks/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/hooks/translations.ts
rename to x-pack/plugins/siem/public/hooks/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/hooks/types.ts b/x-pack/plugins/siem/public/hooks/types.ts
similarity index 64%
rename from x-pack/legacy/plugins/siem/public/hooks/types.ts
rename to x-pack/plugins/siem/public/hooks/types.ts
index 301b8bd655333..cb2972519f1ed 100644
--- a/x-pack/legacy/plugins/siem/public/hooks/types.ts
+++ b/x-pack/plugins/siem/public/hooks/types.ts
@@ -4,10 +4,11 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { SimpleSavedObject } from '../../../../../../src/core/public';
+import { SimpleSavedObject } from '../../../../../src/core/public';
-// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
-export type IndexPatternSavedObjectAttributes = { title: string };
+export interface IndexPatternSavedObjectAttributes {
+ title: string;
+}
export type IndexPatternSavedObject = Pick<
SimpleSavedObject,
diff --git a/x-pack/legacy/plugins/siem/public/hooks/use_index_patterns.tsx b/x-pack/plugins/siem/public/hooks/use_index_patterns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/hooks/use_index_patterns.tsx
rename to x-pack/plugins/siem/public/hooks/use_index_patterns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/index.ts b/x-pack/plugins/siem/public/index.ts
similarity index 78%
rename from x-pack/legacy/plugins/siem/public/index.ts
rename to x-pack/plugins/siem/public/index.ts
index 3a396a0637ea1..9ed8ee59cb992 100644
--- a/x-pack/legacy/plugins/siem/public/index.ts
+++ b/x-pack/plugins/siem/public/index.ts
@@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Plugin, PluginInitializerContext } from './plugin';
+import { PluginInitializerContext } from './core_types';
+import { Plugin } from './plugin';
export const plugin = (context: PluginInitializerContext): Plugin => new Plugin(context);
diff --git a/x-pack/legacy/plugins/siem/public/lib/clipboard/clipboard.tsx b/x-pack/plugins/siem/public/lib/clipboard/clipboard.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/clipboard/clipboard.tsx
rename to x-pack/plugins/siem/public/lib/clipboard/clipboard.tsx
diff --git a/x-pack/legacy/plugins/siem/public/lib/clipboard/translations.ts b/x-pack/plugins/siem/public/lib/clipboard/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/clipboard/translations.ts
rename to x-pack/plugins/siem/public/lib/clipboard/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/clipboard/with_copy_to_clipboard.tsx b/x-pack/plugins/siem/public/lib/clipboard/with_copy_to_clipboard.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/clipboard/with_copy_to_clipboard.tsx
rename to x-pack/plugins/siem/public/lib/clipboard/with_copy_to_clipboard.tsx
diff --git a/x-pack/legacy/plugins/siem/public/lib/compose/helpers.test.ts b/x-pack/plugins/siem/public/lib/compose/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/compose/helpers.test.ts
rename to x-pack/plugins/siem/public/lib/compose/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/compose/helpers.ts b/x-pack/plugins/siem/public/lib/compose/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/compose/helpers.ts
rename to x-pack/plugins/siem/public/lib/compose/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/compose/kibana_compose.tsx b/x-pack/plugins/siem/public/lib/compose/kibana_compose.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/compose/kibana_compose.tsx
rename to x-pack/plugins/siem/public/lib/compose/kibana_compose.tsx
diff --git a/x-pack/legacy/plugins/siem/public/lib/helpers/index.test.tsx b/x-pack/plugins/siem/public/lib/helpers/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/helpers/index.test.tsx
rename to x-pack/plugins/siem/public/lib/helpers/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/lib/helpers/index.tsx b/x-pack/plugins/siem/public/lib/helpers/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/helpers/index.tsx
rename to x-pack/plugins/siem/public/lib/helpers/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/lib/helpers/scheduler.ts b/x-pack/plugins/siem/public/lib/helpers/scheduler.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/helpers/scheduler.ts
rename to x-pack/plugins/siem/public/lib/helpers/scheduler.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/history/index.ts b/x-pack/plugins/siem/public/lib/history/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/history/index.ts
rename to x-pack/plugins/siem/public/lib/history/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/keury/index.test.ts b/x-pack/plugins/siem/public/lib/keury/index.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/keury/index.test.ts
rename to x-pack/plugins/siem/public/lib/keury/index.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/keury/index.ts b/x-pack/plugins/siem/public/lib/keury/index.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/public/lib/keury/index.ts
rename to x-pack/plugins/siem/public/lib/keury/index.ts
index 53f845de48fb3..810baa89cd60d 100644
--- a/x-pack/legacy/plugins/siem/public/lib/keury/index.ts
+++ b/x-pack/plugins/siem/public/lib/keury/index.ts
@@ -12,9 +12,9 @@ import {
esQuery,
esKuery,
IIndexPattern,
-} from '../../../../../../../src/plugins/data/public';
+} from '../../../../../../src/plugins/data/public';
-import { JsonObject } from '../../../../../../../src/plugins/kibana_utils/public';
+import { JsonObject } from '../../../../../../src/plugins/kibana_utils/public';
import { KueryFilterQuery } from '../../store';
diff --git a/x-pack/legacy/plugins/siem/public/lib/kibana/__mocks__/index.ts b/x-pack/plugins/siem/public/lib/kibana/__mocks__/index.ts
similarity index 90%
rename from x-pack/legacy/plugins/siem/public/lib/kibana/__mocks__/index.ts
rename to x-pack/plugins/siem/public/lib/kibana/__mocks__/index.ts
index 227680d79912f..a3e4b5ea61ea5 100644
--- a/x-pack/legacy/plugins/siem/public/lib/kibana/__mocks__/index.ts
+++ b/x-pack/plugins/siem/public/lib/kibana/__mocks__/index.ts
@@ -12,7 +12,7 @@ import {
createWithKibanaMock,
} from '../../../mock/kibana_react';
-export const KibanaServices = { get: jest.fn() };
+export const KibanaServices = { get: jest.fn(), getKibanaVersion: jest.fn(() => '8.0.0') };
export const useKibana = jest.fn(createUseKibanaMock());
export const useUiSetting = jest.fn(createUseUiSettingMock());
export const useUiSetting$ = jest.fn(createUseUiSetting$Mock());
diff --git a/x-pack/legacy/plugins/siem/public/lib/kibana/hooks.ts b/x-pack/plugins/siem/public/lib/kibana/hooks.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/kibana/hooks.ts
rename to x-pack/plugins/siem/public/lib/kibana/hooks.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/kibana/index.ts b/x-pack/plugins/siem/public/lib/kibana/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/kibana/index.ts
rename to x-pack/plugins/siem/public/lib/kibana/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/kibana/kibana_react.ts b/x-pack/plugins/siem/public/lib/kibana/kibana_react.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/lib/kibana/kibana_react.ts
rename to x-pack/plugins/siem/public/lib/kibana/kibana_react.ts
index 012a1cfef5da2..88be8d25e5840 100644
--- a/x-pack/legacy/plugins/siem/public/lib/kibana/kibana_react.ts
+++ b/x-pack/plugins/siem/public/lib/kibana/kibana_react.ts
@@ -11,7 +11,7 @@ import {
useUiSetting,
useUiSetting$,
withKibana,
-} from '../../../../../../../src/plugins/kibana_react/public';
+} from '../../../../../../src/plugins/kibana_react/public';
import { StartServices } from '../../plugin';
export type KibanaContext = KibanaReactContextValue;
diff --git a/x-pack/legacy/plugins/siem/public/lib/kibana/services.ts b/x-pack/plugins/siem/public/lib/kibana/services.ts
similarity index 51%
rename from x-pack/legacy/plugins/siem/public/lib/kibana/services.ts
rename to x-pack/plugins/siem/public/lib/kibana/services.ts
index 3a6a3f13dc5ce..cc9b70abf47fe 100644
--- a/x-pack/legacy/plugins/siem/public/lib/kibana/services.ts
+++ b/x-pack/plugins/siem/public/lib/kibana/services.ts
@@ -9,19 +9,35 @@ import { StartServices } from '../../plugin';
type GlobalServices = Pick;
export class KibanaServices {
+ private static kibanaVersion?: string;
private static services?: GlobalServices;
- public static init({ http, uiSettings }: StartServices) {
+ public static init({
+ http,
+ kibanaVersion,
+ uiSettings,
+ }: StartServices & { kibanaVersion: string }) {
this.services = { http, uiSettings };
+ this.kibanaVersion = kibanaVersion;
}
public static get(): GlobalServices {
if (!this.services) {
throw new Error(
- 'Kibana services not set - are you trying to import this module from outside of the SIEM app?'
+ 'Kibana services not initialized - are you trying to import this module from outside of the SIEM app?'
);
}
return this.services;
}
+
+ public static getKibanaVersion(): string {
+ if (!this.kibanaVersion) {
+ throw new Error(
+ 'Kibana services not initialized - are you trying to import this module from outside of the SIEM app?'
+ );
+ }
+
+ return this.kibanaVersion;
+ }
}
diff --git a/x-pack/legacy/plugins/siem/public/lib/lib.ts b/x-pack/plugins/siem/public/lib/lib.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/lib.ts
rename to x-pack/plugins/siem/public/lib/lib.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/note/index.ts b/x-pack/plugins/siem/public/lib/note/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/note/index.ts
rename to x-pack/plugins/siem/public/lib/note/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/telemetry/index.ts b/x-pack/plugins/siem/public/lib/telemetry/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/telemetry/index.ts
rename to x-pack/plugins/siem/public/lib/telemetry/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/telemetry/middleware.ts b/x-pack/plugins/siem/public/lib/telemetry/middleware.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/telemetry/middleware.ts
rename to x-pack/plugins/siem/public/lib/telemetry/middleware.ts
diff --git a/x-pack/legacy/plugins/siem/public/lib/theme/use_eui_theme.tsx b/x-pack/plugins/siem/public/lib/theme/use_eui_theme.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/lib/theme/use_eui_theme.tsx
rename to x-pack/plugins/siem/public/lib/theme/use_eui_theme.tsx
diff --git a/x-pack/legacy/plugins/siem/public/mock/global_state.ts b/x-pack/plugins/siem/public/mock/global_state.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/global_state.ts
rename to x-pack/plugins/siem/public/mock/global_state.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/header.ts b/x-pack/plugins/siem/public/mock/header.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/header.ts
rename to x-pack/plugins/siem/public/mock/header.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/hook_wrapper.tsx b/x-pack/plugins/siem/public/mock/hook_wrapper.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/hook_wrapper.tsx
rename to x-pack/plugins/siem/public/mock/hook_wrapper.tsx
diff --git a/x-pack/legacy/plugins/siem/public/mock/index.ts b/x-pack/plugins/siem/public/mock/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/index.ts
rename to x-pack/plugins/siem/public/mock/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/index_pattern.ts b/x-pack/plugins/siem/public/mock/index_pattern.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/index_pattern.ts
rename to x-pack/plugins/siem/public/mock/index_pattern.ts
diff --git a/x-pack/plugins/siem/public/mock/kibana_core.ts b/x-pack/plugins/siem/public/mock/kibana_core.ts
new file mode 100644
index 0000000000000..b175ddbf5106d
--- /dev/null
+++ b/x-pack/plugins/siem/public/mock/kibana_core.ts
@@ -0,0 +1,13 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+import { coreMock } from '../../../../../src/core/public/mocks';
+import { dataPluginMock } from '../../../../../src/plugins/data/public/mocks';
+
+export const createKibanaCoreStartMock = () => coreMock.createStart();
+export const createKibanaPluginsStartMock = () => ({
+ data: dataPluginMock.createStartContract(),
+});
diff --git a/x-pack/legacy/plugins/siem/public/mock/kibana_react.ts b/x-pack/plugins/siem/public/mock/kibana_react.ts
similarity index 93%
rename from x-pack/legacy/plugins/siem/public/mock/kibana_react.ts
rename to x-pack/plugins/siem/public/mock/kibana_react.ts
index 968ab6543f4fc..b2c4e1d96731f 100644
--- a/x-pack/legacy/plugins/siem/public/mock/kibana_react.ts
+++ b/x-pack/plugins/siem/public/mock/kibana_react.ts
@@ -7,7 +7,7 @@
/* eslint-disable react/display-name */
import React from 'react';
-import { KibanaContextProvider } from '../../../../../../src/plugins/kibana_react/public';
+import { KibanaContextProvider } from '../../../../../src/plugins/kibana_react/public';
import {
DEFAULT_SIEM_TIME_RANGE,
@@ -24,7 +24,7 @@ import {
DEFAULT_INTERVAL_VALUE,
DEFAULT_BYTES_FORMAT,
} from '../../common/constants';
-import { defaultIndexPattern } from '../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../common/constants';
import { createKibanaCoreStartMock, createKibanaPluginsStartMock } from './kibana_core';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -39,7 +39,7 @@ export const mockUiSettings: Record = {
pause: DEFAULT_INTERVAL_PAUSE,
value: DEFAULT_INTERVAL_VALUE,
},
- [DEFAULT_INDEX_KEY]: defaultIndexPattern,
+ [DEFAULT_INDEX_KEY]: DEFAULT_INDEX_PATTERN,
[DEFAULT_BYTES_FORMAT]: '0,0.[0]b',
[DEFAULT_DATE_FORMAT_TZ]: 'UTC',
[DEFAULT_DATE_FORMAT]: 'MMM D, YYYY @ HH:mm:ss.SSS',
diff --git a/x-pack/legacy/plugins/siem/public/mock/match_media.ts b/x-pack/plugins/siem/public/mock/match_media.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/match_media.ts
rename to x-pack/plugins/siem/public/mock/match_media.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/mock_detail_item.ts b/x-pack/plugins/siem/public/mock/mock_detail_item.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/mock_detail_item.ts
rename to x-pack/plugins/siem/public/mock/mock_detail_item.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/mock_ecs.ts b/x-pack/plugins/siem/public/mock/mock_ecs.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/mock_ecs.ts
rename to x-pack/plugins/siem/public/mock/mock_ecs.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/mock_endgame_ecs_data.ts b/x-pack/plugins/siem/public/mock/mock_endgame_ecs_data.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/mock_endgame_ecs_data.ts
rename to x-pack/plugins/siem/public/mock/mock_endgame_ecs_data.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/mock_timeline_data.ts b/x-pack/plugins/siem/public/mock/mock_timeline_data.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/mock_timeline_data.ts
rename to x-pack/plugins/siem/public/mock/mock_timeline_data.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/netflow.ts b/x-pack/plugins/siem/public/mock/netflow.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/netflow.ts
rename to x-pack/plugins/siem/public/mock/netflow.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/news.ts b/x-pack/plugins/siem/public/mock/news.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/news.ts
rename to x-pack/plugins/siem/public/mock/news.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/raw_news.ts b/x-pack/plugins/siem/public/mock/raw_news.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/raw_news.ts
rename to x-pack/plugins/siem/public/mock/raw_news.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/test_providers.tsx b/x-pack/plugins/siem/public/mock/test_providers.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/mock/test_providers.tsx
rename to x-pack/plugins/siem/public/mock/test_providers.tsx
index c7692755c1330..c2023a8d32e8e 100644
--- a/x-pack/legacy/plugins/siem/public/mock/test_providers.tsx
+++ b/x-pack/plugins/siem/public/mock/test_providers.tsx
@@ -21,8 +21,6 @@ import { createStore, State } from '../store';
import { mockGlobalState } from './global_state';
import { createKibanaContextProviderMock } from './kibana_react';
-jest.mock('ui/new_platform');
-
const state: State = mockGlobalState;
interface Props {
diff --git a/x-pack/legacy/plugins/siem/public/mock/timeline_results.ts b/x-pack/plugins/siem/public/mock/timeline_results.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/timeline_results.ts
rename to x-pack/plugins/siem/public/mock/timeline_results.ts
diff --git a/x-pack/legacy/plugins/siem/public/mock/utils.ts b/x-pack/plugins/siem/public/mock/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/mock/utils.ts
rename to x-pack/plugins/siem/public/mock/utils.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/404.tsx b/x-pack/plugins/siem/public/pages/404.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/404.tsx
rename to x-pack/plugins/siem/public/pages/404.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/case.tsx b/x-pack/plugins/siem/public/pages/case/case.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/case.tsx
rename to x-pack/plugins/siem/public/pages/case/case.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/case_details.tsx b/x-pack/plugins/siem/public/pages/case/case_details.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/case_details.tsx
rename to x-pack/plugins/siem/public/pages/case/case_details.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx b/x-pack/plugins/siem/public/pages/case/components/add_comment/index.tsx
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/add_comment/index.tsx
index 16c6101b80d40..2752b48824dca 100644
--- a/x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx
+++ b/x-pack/plugins/siem/public/pages/case/components/add_comment/index.tsx
@@ -8,7 +8,7 @@ import { EuiButton, EuiLoadingSpinner } from '@elastic/eui';
import React, { useCallback } from 'react';
import styled from 'styled-components';
-import { CommentRequest } from '../../../../../../../../plugins/case/common/api';
+import { CommentRequest } from '../../../../../../case/common/api';
import { usePostComment } from '../../../../containers/case/use_post_comment';
import { MarkdownEditorForm } from '../../../../components/markdown_editor/form';
import { Form, useForm, UseField } from '../../../../shared_imports';
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/schema.tsx b/x-pack/plugins/siem/public/pages/case/components/add_comment/schema.tsx
similarity index 88%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/schema.tsx
rename to x-pack/plugins/siem/public/pages/case/components/add_comment/schema.tsx
index c61874a8dabfc..ad73fd71b8e11 100644
--- a/x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/schema.tsx
+++ b/x-pack/plugins/siem/public/pages/case/components/add_comment/schema.tsx
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { CommentRequest } from '../../../../../../../../plugins/case/common/api';
+import { CommentRequest } from '../../../../../../case/common/api';
import { FIELD_TYPES, fieldValidators, FormSchema } from '../../../../shared_imports';
import * as i18n from '../../translations';
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx b/x-pack/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/actions.tsx b/x-pack/plugins/siem/public/pages/case/components/all_cases/actions.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/actions.tsx
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/actions.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/columns.tsx b/x-pack/plugins/siem/public/pages/case/components/all_cases/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/columns.tsx
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/index.test.tsx b/x-pack/plugins/siem/public/pages/case/components/all_cases/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/index.test.tsx
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/index.tsx b/x-pack/plugins/siem/public/pages/case/components/all_cases/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/table_filters.tsx b/x-pack/plugins/siem/public/pages/case/components/all_cases/table_filters.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/table_filters.tsx
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/table_filters.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/translations.ts b/x-pack/plugins/siem/public/pages/case/components/all_cases/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/translations.ts
rename to x-pack/plugins/siem/public/pages/case/components/all_cases/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/bulk_actions/index.tsx b/x-pack/plugins/siem/public/pages/case/components/bulk_actions/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/bulk_actions/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/bulk_actions/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/bulk_actions/translations.ts b/x-pack/plugins/siem/public/pages/case/components/bulk_actions/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/bulk_actions/translations.ts
rename to x-pack/plugins/siem/public/pages/case/components/bulk_actions/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/case_header_page/index.tsx b/x-pack/plugins/siem/public/pages/case/components/case_header_page/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/case_header_page/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/case_header_page/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/case_header_page/translations.ts b/x-pack/plugins/siem/public/pages/case/components/case_header_page/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/case_header_page/translations.ts
rename to x-pack/plugins/siem/public/pages/case/components/case_header_page/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/case_view/__mock__/index.tsx b/x-pack/plugins/siem/public/pages/case/components/case_view/__mock__/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/case_view/__mock__/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/case_view/__mock__/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/case_view/index.test.tsx b/x-pack/plugins/siem/public/pages/case/components/case_view/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/case_view/index.test.tsx
rename to x-pack/plugins/siem/public/pages/case/components/case_view/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/case_view/index.tsx b/x-pack/plugins/siem/public/pages/case/components/case_view/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/case_view/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/case_view/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/case_view/translations.ts b/x-pack/plugins/siem/public/pages/case/components/case_view/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/case_view/translations.ts
rename to x-pack/plugins/siem/public/pages/case/components/case_view/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/closure_options.tsx b/x-pack/plugins/siem/public/pages/case/components/configure_cases/closure_options.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/closure_options.tsx
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/closure_options.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/closure_options_radio.tsx b/x-pack/plugins/siem/public/pages/case/components/configure_cases/closure_options_radio.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/closure_options_radio.tsx
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/closure_options_radio.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/connectors.tsx b/x-pack/plugins/siem/public/pages/case/components/configure_cases/connectors.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/connectors.tsx
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/connectors.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/connectors_dropdown.tsx b/x-pack/plugins/siem/public/pages/case/components/configure_cases/connectors_dropdown.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/connectors_dropdown.tsx
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/connectors_dropdown.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/field_mapping.tsx b/x-pack/plugins/siem/public/pages/case/components/configure_cases/field_mapping.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/field_mapping.tsx
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/field_mapping.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/field_mapping_row.tsx b/x-pack/plugins/siem/public/pages/case/components/configure_cases/field_mapping_row.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/field_mapping_row.tsx
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/field_mapping_row.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/translations.ts b/x-pack/plugins/siem/public/pages/case/components/configure_cases/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/translations.ts
rename to x-pack/plugins/siem/public/pages/case/components/configure_cases/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/create/form_options.ts b/x-pack/plugins/siem/public/pages/case/components/create/form_options.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/create/form_options.ts
rename to x-pack/plugins/siem/public/pages/case/components/create/form_options.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx b/x-pack/plugins/siem/public/pages/case/components/create/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/create/index.tsx
index 840792f510fc0..aecaedacc4aec 100644
--- a/x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx
+++ b/x-pack/plugins/siem/public/pages/case/components/create/index.tsx
@@ -15,7 +15,7 @@ import {
import styled, { css } from 'styled-components';
import { Redirect } from 'react-router-dom';
-import { CaseRequest } from '../../../../../../../../plugins/case/common/api';
+import { CaseRequest } from '../../../../../../case/common/api';
import { Field, Form, getUseField, useForm, UseField } from '../../../../shared_imports';
import { usePostCase } from '../../../../containers/case/use_post_case';
import { schema } from './schema';
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/create/optional_field_label/index.tsx b/x-pack/plugins/siem/public/pages/case/components/create/optional_field_label/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/create/optional_field_label/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/create/optional_field_label/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/create/schema.tsx b/x-pack/plugins/siem/public/pages/case/components/create/schema.tsx
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/create/schema.tsx
rename to x-pack/plugins/siem/public/pages/case/components/create/schema.tsx
index 91d3b77493b03..79229e486c23d 100644
--- a/x-pack/legacy/plugins/siem/public/pages/case/components/create/schema.tsx
+++ b/x-pack/plugins/siem/public/pages/case/components/create/schema.tsx
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { CaseRequest } from '../../../../../../../../plugins/case/common/api';
+import { CaseRequest } from '../../../../../../case/common/api';
import { FIELD_TYPES, fieldValidators, FormSchema } from '../../../../shared_imports';
import * as i18n from '../../translations';
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/open_closed_stats/index.tsx b/x-pack/plugins/siem/public/pages/case/components/open_closed_stats/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/open_closed_stats/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/open_closed_stats/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/property_actions/constants.ts b/x-pack/plugins/siem/public/pages/case/components/property_actions/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/property_actions/constants.ts
rename to x-pack/plugins/siem/public/pages/case/components/property_actions/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/property_actions/index.tsx b/x-pack/plugins/siem/public/pages/case/components/property_actions/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/property_actions/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/property_actions/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/tag_list/index.tsx b/x-pack/plugins/siem/public/pages/case/components/tag_list/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/tag_list/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/tag_list/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/tag_list/schema.tsx b/x-pack/plugins/siem/public/pages/case/components/tag_list/schema.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/tag_list/schema.tsx
rename to x-pack/plugins/siem/public/pages/case/components/tag_list/schema.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/index.tsx b/x-pack/plugins/siem/public/pages/case/components/user_action_tree/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/user_action_tree/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_avatar.tsx b/x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_avatar.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_avatar.tsx
rename to x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_avatar.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_item.tsx b/x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_item.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_item.tsx
rename to x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_item.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_markdown.tsx b/x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_markdown.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_markdown.tsx
rename to x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_markdown.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_title.tsx b/x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_title.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/user_action_title.tsx
rename to x-pack/plugins/siem/public/pages/case/components/user_action_tree/user_action_title.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/user_list/index.tsx b/x-pack/plugins/siem/public/pages/case/components/user_list/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/user_list/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/user_list/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/wrappers/index.tsx b/x-pack/plugins/siem/public/pages/case/components/wrappers/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/components/wrappers/index.tsx
rename to x-pack/plugins/siem/public/pages/case/components/wrappers/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/configure_cases.tsx b/x-pack/plugins/siem/public/pages/case/configure_cases.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/configure_cases.tsx
rename to x-pack/plugins/siem/public/pages/case/configure_cases.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/create_case.tsx b/x-pack/plugins/siem/public/pages/case/create_case.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/create_case.tsx
rename to x-pack/plugins/siem/public/pages/case/create_case.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/index.tsx b/x-pack/plugins/siem/public/pages/case/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/index.tsx
rename to x-pack/plugins/siem/public/pages/case/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/translations.ts b/x-pack/plugins/siem/public/pages/case/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/case/translations.ts
rename to x-pack/plugins/siem/public/pages/case/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/case/utils.ts b/x-pack/plugins/siem/public/pages/case/utils.ts
similarity index 83%
rename from x-pack/legacy/plugins/siem/public/pages/case/utils.ts
rename to x-pack/plugins/siem/public/pages/case/utils.ts
index bd6cb5da5eb01..25c380f70c34b 100644
--- a/x-pack/legacy/plugins/siem/public/pages/case/utils.ts
+++ b/x-pack/plugins/siem/public/pages/case/utils.ts
@@ -4,13 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Breadcrumb } from 'ui/chrome';
+import { ChromeBreadcrumb } from '../../core_types';
import { getCaseDetailsUrl, getCaseUrl, getCreateCaseUrl } from '../../components/link_to';
import { RouteSpyState } from '../../utils/route/types';
import * as i18n from './translations';
-export const getBreadcrumbs = (params: RouteSpyState): Breadcrumb[] => {
- let breadcrumb = [
+export const getBreadcrumbs = (params: RouteSpyState): ChromeBreadcrumb[] => {
+ let breadcrumb: ChromeBreadcrumb[] = [
{
text: i18n.PAGE_TITLE,
href: getCaseUrl(),
diff --git a/x-pack/legacy/plugins/siem/public/pages/common/translations.ts b/x-pack/plugins/siem/public/pages/common/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/common/translations.ts
rename to x-pack/plugins/siem/public/pages/common/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/activity_monitor/columns.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/activity_monitor/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/activity_monitor/columns.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/activity_monitor/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/activity_monitor/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/activity_monitor/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/activity_monitor/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/activity_monitor/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/activity_monitor/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/activity_monitor/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/activity_monitor/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/activity_monitor/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/detection_engine_header_page/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/no_api_integration_callout/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/no_write_signals_callout/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/actions.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/actions.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/actions.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/actions.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/default_config.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/default_config.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/default_config.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/default_config.tsx
index 44c48b1879e89..1c902eb123906 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/default_config.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/default_config.tsx
@@ -10,7 +10,7 @@ import { EuiButtonIcon, EuiToolTip } from '@elastic/eui';
import ApolloClient from 'apollo-client';
import React from 'react';
-import { Filter } from '../../../../../../../../../src/plugins/data/common/es_query';
+import { Filter } from '../../../../../../../../src/plugins/data/common/es_query';
import { TimelineAction, TimelineActionProps } from '../../../../components/timeline/body/actions';
import { defaultColumnHeaderType } from '../../../../components/timeline/body/column_headers/default_headers';
import {
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/helpers.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/helpers.ts
index 715d98ed33694..ba8010c16533e 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/helpers.ts
+++ b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/helpers.ts
@@ -5,7 +5,7 @@
*/
import { get, isEmpty } from 'lodash/fp';
-import { Filter, esKuery, KueryNode } from '../../../../../../../../../src/plugins/data/public';
+import { Filter, esKuery, KueryNode } from '../../../../../../../../src/plugins/data/public';
import {
DataProvider,
DataProvidersAnd,
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/index.tsx
index afd325f539966..386760990bed2 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/index.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/index.tsx
@@ -10,7 +10,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { connect, ConnectedProps } from 'react-redux';
import { Dispatch } from 'redux';
-import { Filter, esQuery } from '../../../../../../../../../src/plugins/data/public';
+import { Filter, esQuery } from '../../../../../../../../src/plugins/data/public';
import { useFetchIndexPatterns } from '../../../../containers/detection_engine/rules/fetch_index_patterns';
import { StatefulEventsViewer } from '../../../../components/events_viewer';
import { HeaderSection } from '../../../../components/header_section';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_filter_group/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_filter_group/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_filter_group/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_filter_group/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/batch_actions.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/batch_actions.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/batch_actions.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/batch_actions.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/signals_utility_bar/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/config.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/config.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/config.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/config.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/helpers.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/index.tsx
index 079293bd45231..fc85bee7b744f 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/index.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/index.tsx
@@ -12,7 +12,7 @@ import { isEmpty } from 'lodash/fp';
import { HeaderSection } from '../../../../components/header_section';
import { SignalsHistogram } from './signals_histogram';
-import { Filter, esQuery, Query } from '../../../../../../../../../src/plugins/data/public';
+import { Filter, esQuery, Query } from '../../../../../../../../src/plugins/data/public';
import { RegisterQuery, SignalsHistogramOption, SignalsAggregation, SignalsTotal } from './types';
import { signalsHistogramOptions } from './config';
import { getDetectionEngineUrl } from '../../../../components/link_to';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/signals_histogram.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/signals_histogram.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/signals_histogram.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/signals_histogram.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_histogram_panel/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_info/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_info/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_info/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_info/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_info/query.dsl.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_info/query.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_info/query.dsl.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_info/query.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_info/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/components/signals_info/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/signals_info/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/components/signals_info/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/components/user_info/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/components/user_info/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/components/user_info/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/components/user_info/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine.tsx b/x-pack/plugins/siem/public/pages/detection_engine/detection_engine.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/detection_engine.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx b/x-pack/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_no_signal_index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/detection_engine_no_signal_index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_no_signal_index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/detection_engine_no_signal_index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_user_unauthenticated.tsx b/x-pack/plugins/siem/public/pages/detection_engine/detection_engine_user_unauthenticated.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_user_unauthenticated.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/detection_engine_user_unauthenticated.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/mitre/mitre_tactics_techniques.ts b/x-pack/plugins/siem/public/pages/detection_engine/mitre/mitre_tactics_techniques.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/mitre/mitre_tactics_techniques.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/mitre/mitre_tactics_techniques.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/mitre/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/mitre/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/mitre/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/mitre/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/__mocks__/mock.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/__mocks__/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/__mocks__/mock.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/__mocks__/mock.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/actions.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/actions.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/actions.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/actions.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/batch_actions.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/batch_actions.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/batch_actions.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/batch_actions.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/columns.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/columns.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/columns.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/columns.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/columns.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/columns.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/columns.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/columns.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/helpers.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/helpers.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/helpers.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/helpers.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/reducer.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/reducer.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/rules_table_filters.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/rules_table_filters.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/rules_table_filters.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/rules_table_filters.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/tags_filter_popover.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/tags_filter_popover.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/tags_filter_popover.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/all/rules_table_filters/tags_filter_popover.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/accordion_title/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/accordion_title/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/accordion_title/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/accordion_title/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/add_item_form/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/add_item_form/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/add_item_form/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/add_item_form/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/assets/list_tree_icon.svg b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/assets/list_tree_icon.svg
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/assets/list_tree_icon.svg
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/assets/list_tree_icon.svg
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
index df767fbd4ff8c..dce9612ba8c5c 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
@@ -18,7 +18,7 @@ import { isEmpty } from 'lodash/fp';
import React from 'react';
import styled from 'styled-components';
-import { esFilters } from '../../../../../../../../../../src/plugins/data/public';
+import { esFilters } from '../../../../../../../../../src/plugins/data/public';
import { tacticsOptions, techniquesOptions } from '../../../mitre/mitre_tactics_techniques';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.test.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.test.tsx
index 84c662dd00199..08eb9c7993670 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.test.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.test.tsx
@@ -6,7 +6,7 @@
import { addFilterStateIfNotThere } from './';
-import { esFilters, Filter } from '../../../../../../../../../../src/plugins/data/public';
+import { esFilters, Filter } from '../../../../../../../../../src/plugins/data/public';
describe('description_step', () => {
describe('addFilterStateIfNotThere', () => {
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.tsx
index f921c29c06ab0..b59474ea426e3 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/index.tsx
@@ -14,7 +14,7 @@ import {
esFilters,
FilterManager,
Query,
-} from '../../../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../../../src/plugins/data/public';
import { DEFAULT_TIMELINE_TITLE } from '../../../../../components/timeline/search_super_select/translations';
import { useKibana } from '../../../../../lib/kibana';
import { IMitreEnterpriseAttack } from '../../types';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/translations.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/translations.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/translations.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/translations.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/types.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/types.ts
index ab73c52ae9070..aef209f8886bb 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/types.ts
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/description_step/types.ts
@@ -10,7 +10,7 @@ import {
Filter,
FilterManager,
Query,
-} from '../../../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../../../src/plugins/data/public';
import { IMitreEnterpriseAttack } from '../../types';
export interface ListItems {
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/mitre/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/mitre/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/mitre/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/mitre/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/mitre/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/mitre/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/mitre/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/mitre/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/mitre/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/mitre/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/mitre/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/mitre/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/optional_field_label/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/optional_field_label/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/optional_field_label/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/optional_field_label/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pick_timeline/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/pick_timeline/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pick_timeline/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/pick_timeline/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/load_empty_prompt.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/load_empty_prompt.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/load_empty_prompt.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/load_empty_prompt.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/update_callout.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/update_callout.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/update_callout.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/pre_packaged_rules/update_callout.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/query_bar/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/query_bar/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/query_bar/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/query_bar/index.tsx
index 5886a76182eec..ccc2694c9948a 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/query_bar/index.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/query_bar/index.tsx
@@ -17,7 +17,7 @@ import {
FilterManager,
SavedQuery,
SavedQueryTimeFilter,
-} from '../../../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../../../src/plugins/data/public';
import { BrowserFields } from '../../../../../containers/source';
import { OpenTimelineModal } from '../../../../../components/open_timeline/open_timeline_modal';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/query_bar/translations.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/query_bar/translations.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/query_bar/translations.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/query_bar/translations.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/read_only_callout/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_actions_overflow/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_downloader/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_status/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_status/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_status/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_status/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_status/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_status/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_status/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_status/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_status/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_status/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_status/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_status/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.test.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.test.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/rule_switch/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/schedule_item_form/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/severity_badge/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/severity_badge/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/severity_badge/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/severity_badge/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/status_icon/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/status_icon/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/status_icon/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/status_icon/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/data.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/data.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/data.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/data.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/default_value.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/default_value.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/default_value.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/default_value.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.test.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.test.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/schema.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/schema.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/schema.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/schema.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_content_wrapper/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_content_wrapper/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_content_wrapper/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_content_wrapper/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/index.tsx
index 837bc79e968e8..9daad667d7034 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/index.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/index.tsx
@@ -16,7 +16,7 @@ import React, { FC, memo, useCallback, useState, useEffect } from 'react';
import styled from 'styled-components';
import deepEqual from 'fast-deep-equal';
-import { IIndexPattern } from '../../../../../../../../../../src/plugins/data/public';
+import { IIndexPattern } from '../../../../../../../../../src/plugins/data/public';
import { useFetchIndexPatterns } from '../../../../../containers/detection_engine/rules';
import { DEFAULT_INDEX_KEY } from '../../../../../../common/constants';
import { useUiSetting$ } from '../../../../../lib/kibana';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/schema.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/schema.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/schema.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/schema.tsx
index e202ff030cd90..a28f9ee1a7741 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/schema.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/schema.tsx
@@ -9,7 +9,7 @@ import { EuiText } from '@elastic/eui';
import { isEmpty } from 'lodash/fp';
import React from 'react';
-import { esKuery } from '../../../../../../../../../../src/plugins/data/public';
+import { esKuery } from '../../../../../../../../../src/plugins/data/public';
import { FieldValueQueryBar } from '../query_bar';
import {
ERROR_CODE,
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/translations.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/translations.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/translations.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/translations.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_define_rule/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_panel/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_panel/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_panel/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_panel/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/schema.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/schema.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/schema.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/schema.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/translations.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/translations.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/translations.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/components/step_schedule_rule/translations.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/create/helpers.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/create/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/create/helpers.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/create/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/create/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/create/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/create/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/create/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/create/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/create/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/create/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/create/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/failure_history.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/details/failure_history.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/failure_history.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/details/failure_history.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/details/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/details/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/status_failed_callout.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/details/status_failed_callout.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/status_failed_callout.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/details/status_failed_callout.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/details/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/details/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/details/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/edit/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/edit/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/edit/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/edit/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/edit/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/edit/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/edit/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/edit/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/helpers.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/helpers.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/helpers.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/helpers.tsx
index 85f3bcbd236e9..330cfad3cebbc 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/helpers.tsx
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/helpers.tsx
@@ -9,7 +9,7 @@ import { get, pick } from 'lodash/fp';
import moment from 'moment';
import { useLocation } from 'react-router-dom';
-import { Filter } from '../../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../../src/plugins/data/public';
import { Rule } from '../../../containers/detection_engine/rules';
import { FormData, FormHook, FormSchema } from '../../../shared_imports';
import { AboutStepRule, DefineStepRule, IMitreEnterpriseAttack, ScheduleStepRule } from './types';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/index.tsx b/x-pack/plugins/siem/public/pages/detection_engine/rules/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/index.tsx
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/types.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/types.ts
index 34df20de1e461..4e27a500f1c37 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/types.ts
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/types.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Filter } from '../../../../../../../../src/plugins/data/common';
+import { Filter } from '../../../../../../../src/plugins/data/common';
import { FieldValueQueryBar } from './components/query_bar';
import { FormData, FormHook } from '../../../shared_imports';
import { FieldValueTimeline } from './components/pick_timeline';
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/utils.ts b/x-pack/plugins/siem/public/pages/detection_engine/rules/utils.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/utils.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/rules/utils.ts
index 11942c57a4d27..74bba3b109728 100644
--- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/utils.ts
+++ b/x-pack/plugins/siem/public/pages/detection_engine/rules/utils.ts
@@ -6,7 +6,7 @@
import { isEmpty } from 'lodash/fp';
-import { ChromeBreadcrumb } from '../../../../../../../../src/core/public';
+import { ChromeBreadcrumb } from '../../../core_types';
import {
getDetectionEngineUrl,
getDetectionEngineTabUrl,
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/translations.ts b/x-pack/plugins/siem/public/pages/detection_engine/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/translations.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/types.ts b/x-pack/plugins/siem/public/pages/detection_engine/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/detection_engine/types.ts
rename to x-pack/plugins/siem/public/pages/detection_engine/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/home/home_navigations.tsx b/x-pack/plugins/siem/public/pages/home/home_navigations.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/home/home_navigations.tsx
rename to x-pack/plugins/siem/public/pages/home/home_navigations.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/home/index.tsx b/x-pack/plugins/siem/public/pages/home/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/home/index.tsx
rename to x-pack/plugins/siem/public/pages/home/index.tsx
index 605136a190c54..3b7cb3c76c8d3 100644
--- a/x-pack/legacy/plugins/siem/public/pages/home/index.tsx
+++ b/x-pack/plugins/siem/public/pages/home/index.tsx
@@ -37,7 +37,7 @@ import { SiemPageName } from './types';
* we will loose the map embeddable until they move to the New Platform
* we need to have it
*/
-import 'uiExports/embeddableFactories';
+// import 'uiExports/embeddableFactories';
const WrappedByAutoSizer = styled.div`
height: 100%;
diff --git a/x-pack/legacy/plugins/siem/public/pages/home/translations.ts b/x-pack/plugins/siem/public/pages/home/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/home/translations.ts
rename to x-pack/plugins/siem/public/pages/home/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/home/types.ts b/x-pack/plugins/siem/public/pages/home/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/home/types.ts
rename to x-pack/plugins/siem/public/pages/home/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/details_tabs.test.tsx b/x-pack/plugins/siem/public/pages/hosts/details/details_tabs.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/details_tabs.test.tsx
rename to x-pack/plugins/siem/public/pages/hosts/details/details_tabs.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/details_tabs.tsx b/x-pack/plugins/siem/public/pages/hosts/details/details_tabs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/details_tabs.tsx
rename to x-pack/plugins/siem/public/pages/hosts/details/details_tabs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/helpers.test.ts b/x-pack/plugins/siem/public/pages/hosts/details/helpers.test.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/helpers.test.ts
rename to x-pack/plugins/siem/public/pages/hosts/details/helpers.test.ts
index 69268d841e12e..d989d709cc4af 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/details/helpers.test.ts
+++ b/x-pack/plugins/siem/public/pages/hosts/details/helpers.test.ts
@@ -5,7 +5,7 @@
*/
import { getHostDetailsEventsKqlQueryExpression, getHostDetailsPageFilters } from './helpers';
-import { Filter } from '../../../../../../../../src/plugins/data/common/es_query';
+import { Filter } from '../../../../../../../src/plugins/data/common/es_query';
describe('hosts page helpers', () => {
describe('getHostDetailsEventsKqlQueryExpression', () => {
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/helpers.ts b/x-pack/plugins/siem/public/pages/hosts/details/helpers.ts
similarity index 94%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/helpers.ts
rename to x-pack/plugins/siem/public/pages/hosts/details/helpers.ts
index 461fde2bba0ca..6da76f2fb5cac 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/details/helpers.ts
+++ b/x-pack/plugins/siem/public/pages/hosts/details/helpers.ts
@@ -5,7 +5,7 @@
*/
import { escapeQueryValue } from '../../../lib/keury';
-import { Filter } from '../../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../../src/plugins/data/public';
/** Returns the kqlQueryExpression for the `Events` widget on the `Host Details` page */
export const getHostDetailsEventsKqlQueryExpression = ({
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/index.tsx b/x-pack/plugins/siem/public/pages/hosts/details/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/index.tsx
rename to x-pack/plugins/siem/public/pages/hosts/details/index.tsx
index 8af4731e4dda4..add44315c7173 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/details/index.tsx
+++ b/x-pack/plugins/siem/public/pages/hosts/details/index.tsx
@@ -33,7 +33,7 @@ import { inputsSelectors, State } from '../../../store';
import { setHostDetailsTablesActivePageToZero as dispatchHostDetailsTablesActivePageToZero } from '../../../store/hosts/actions';
import { setAbsoluteRangeDatePicker as dispatchAbsoluteRangeDatePicker } from '../../../store/inputs/actions';
import { SpyRoute } from '../../../utils/route/spy_routes';
-import { esQuery, Filter } from '../../../../../../../../src/plugins/data/public';
+import { esQuery, Filter } from '../../../../../../../src/plugins/data/public';
import { HostsEmptyPage } from '../hosts_empty_page';
import { HostDetailsTabs } from './details_tabs';
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/nav_tabs.test.tsx b/x-pack/plugins/siem/public/pages/hosts/details/nav_tabs.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/nav_tabs.test.tsx
rename to x-pack/plugins/siem/public/pages/hosts/details/nav_tabs.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/nav_tabs.tsx b/x-pack/plugins/siem/public/pages/hosts/details/nav_tabs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/nav_tabs.tsx
rename to x-pack/plugins/siem/public/pages/hosts/details/nav_tabs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/types.ts b/x-pack/plugins/siem/public/pages/hosts/details/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/types.ts
rename to x-pack/plugins/siem/public/pages/hosts/details/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/details/utils.ts b/x-pack/plugins/siem/public/pages/hosts/details/utils.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/details/utils.ts
rename to x-pack/plugins/siem/public/pages/hosts/details/utils.ts
index c4680dc3d795e..2321fe10726de 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/details/utils.ts
+++ b/x-pack/plugins/siem/public/pages/hosts/details/utils.ts
@@ -6,7 +6,7 @@
import { get, isEmpty } from 'lodash/fp';
-import { ChromeBreadcrumb } from '../../../../../../../../src/core/public';
+import { ChromeBreadcrumb } from '../../../core_types';
import { hostsModel } from '../../../store';
import { HostsTableType } from '../../../store/hosts/model';
import { getHostsUrl, getHostDetailsUrl } from '../../../components/link_to/redirect_to_hosts';
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx b/x-pack/plugins/siem/public/pages/hosts/hosts.test.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx
rename to x-pack/plugins/siem/public/pages/hosts/hosts.test.tsx
index 99cf767c65e08..6134c1dd6911a 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx
+++ b/x-pack/plugins/siem/public/pages/hosts/hosts.test.tsx
@@ -10,7 +10,7 @@ import React from 'react';
import { Router } from 'react-router-dom';
import { MockedProvider } from 'react-apollo/test-utils';
-import { Filter } from '../../../../../../../src/plugins/data/common/es_query';
+import { Filter } from '../../../../../../src/plugins/data/common/es_query';
import '../../mock/match_media';
import { mocksSource } from '../../containers/source/mock';
import { wait } from '../../lib/helpers';
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.tsx b/x-pack/plugins/siem/public/pages/hosts/hosts.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/hosts.tsx
rename to x-pack/plugins/siem/public/pages/hosts/hosts.tsx
index a7aa9920b7d08..6ea223ead9d41 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.tsx
+++ b/x-pack/plugins/siem/public/pages/hosts/hosts.tsx
@@ -29,7 +29,7 @@ import { inputsSelectors, State, hostsModel } from '../../store';
import { setAbsoluteRangeDatePicker as dispatchSetAbsoluteRangeDatePicker } from '../../store/inputs/actions';
import { SpyRoute } from '../../utils/route/spy_routes';
-import { esQuery } from '../../../../../../../src/plugins/data/public';
+import { esQuery } from '../../../../../../src/plugins/data/public';
import { HostsEmptyPage } from './hosts_empty_page';
import { HostsTabs } from './hosts_tabs';
import { navTabsHosts } from './nav_tabs';
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts_empty_page.tsx b/x-pack/plugins/siem/public/pages/hosts/hosts_empty_page.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/hosts_empty_page.tsx
rename to x-pack/plugins/siem/public/pages/hosts/hosts_empty_page.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts_tabs.tsx b/x-pack/plugins/siem/public/pages/hosts/hosts_tabs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/hosts_tabs.tsx
rename to x-pack/plugins/siem/public/pages/hosts/hosts_tabs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/index.tsx b/x-pack/plugins/siem/public/pages/hosts/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/index.tsx
rename to x-pack/plugins/siem/public/pages/hosts/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/nav_tabs.test.tsx b/x-pack/plugins/siem/public/pages/hosts/nav_tabs.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/nav_tabs.test.tsx
rename to x-pack/plugins/siem/public/pages/hosts/nav_tabs.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/nav_tabs.tsx b/x-pack/plugins/siem/public/pages/hosts/nav_tabs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/nav_tabs.tsx
rename to x-pack/plugins/siem/public/pages/hosts/nav_tabs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/alerts_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/hosts/navigation/alerts_query_tab_body.tsx
similarity index 95%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/alerts_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/hosts/navigation/alerts_query_tab_body.tsx
index ebcb07131bb24..ec33834b1bf73 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/alerts_query_tab_body.tsx
+++ b/x-pack/plugins/siem/public/pages/hosts/navigation/alerts_query_tab_body.tsx
@@ -6,7 +6,7 @@
import React, { useMemo } from 'react';
-import { Filter } from '../../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../../src/plugins/data/public';
import { AlertsView } from '../../../components/alerts_viewer';
import { AlertsComponentQueryProps } from './types';
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/authentications_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/hosts/navigation/authentications_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/authentications_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/hosts/navigation/authentications_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/events_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/hosts/navigation/events_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/events_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/hosts/navigation/events_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/hosts_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/hosts/navigation/hosts_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/hosts_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/hosts/navigation/hosts_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/index.ts b/x-pack/plugins/siem/public/pages/hosts/navigation/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/index.ts
rename to x-pack/plugins/siem/public/pages/hosts/navigation/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/types.ts b/x-pack/plugins/siem/public/pages/hosts/navigation/types.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/types.ts
rename to x-pack/plugins/siem/public/pages/hosts/navigation/types.ts
index cb5fc62b96582..aca1502aecc55 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/types.ts
+++ b/x-pack/plugins/siem/public/pages/hosts/navigation/types.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Filter, IIndexPattern } from '../../../../../../../../src/plugins/data/public';
+import { Filter, IIndexPattern } from '../../../../../../../src/plugins/data/public';
import { NarrowDateRange } from '../../../components/ml/types';
import { ESTermQuery } from '../../../../common/typed_json';
import { InspectQuery, Refetch } from '../../../store/inputs/model';
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/navigation/uncommon_process_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/hosts/navigation/uncommon_process_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/navigation/uncommon_process_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/hosts/navigation/uncommon_process_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/translations.ts b/x-pack/plugins/siem/public/pages/hosts/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/translations.ts
rename to x-pack/plugins/siem/public/pages/hosts/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/types.ts b/x-pack/plugins/siem/public/pages/hosts/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/hosts/types.ts
rename to x-pack/plugins/siem/public/pages/hosts/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/index.tsx b/x-pack/plugins/siem/public/pages/network/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/index.tsx
rename to x-pack/plugins/siem/public/pages/network/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/__snapshots__/index.test.tsx.snap b/x-pack/plugins/siem/public/pages/network/ip_details/__snapshots__/index.test.tsx.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/__snapshots__/index.test.tsx.snap
rename to x-pack/plugins/siem/public/pages/network/ip_details/__snapshots__/index.test.tsx.snap
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.test.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.test.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/index.tsx
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/index.tsx
index e796eaca0cd28..350d6e34c1c0f 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.tsx
+++ b/x-pack/plugins/siem/public/pages/network/ip_details/index.tsx
@@ -40,7 +40,7 @@ import { TlsQueryTable } from './tls_query_table';
import { IPDetailsComponentProps } from './types';
import { UsersQueryTable } from './users_query_table';
import { AnomaliesQueryTabBody } from '../../../containers/anomalies/anomalies_query_tab_body';
-import { esQuery } from '../../../../../../../../src/plugins/data/public';
+import { esQuery } from '../../../../../../../src/plugins/data/public';
export { getBreadcrumbs } from './utils';
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/network_http_query_table.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/network_http_query_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/network_http_query_table.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/network_http_query_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/network_top_countries_query_table.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/network_top_countries_query_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/network_top_countries_query_table.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/network_top_countries_query_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/network_top_n_flow_query_table.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/network_top_n_flow_query_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/network_top_n_flow_query_table.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/network_top_n_flow_query_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/tls_query_table.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/tls_query_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/tls_query_table.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/tls_query_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/types.ts b/x-pack/plugins/siem/public/pages/network/ip_details/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/types.ts
rename to x-pack/plugins/siem/public/pages/network/ip_details/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/users_query_table.tsx b/x-pack/plugins/siem/public/pages/network/ip_details/users_query_table.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/users_query_table.tsx
rename to x-pack/plugins/siem/public/pages/network/ip_details/users_query_table.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/utils.ts b/x-pack/plugins/siem/public/pages/network/ip_details/utils.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/pages/network/ip_details/utils.ts
rename to x-pack/plugins/siem/public/pages/network/ip_details/utils.ts
index 1488dd556c0b9..9a1abeaf90894 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/utils.ts
+++ b/x-pack/plugins/siem/public/pages/network/ip_details/utils.ts
@@ -6,7 +6,7 @@
import { get, isEmpty } from 'lodash/fp';
-import { ChromeBreadcrumb } from '../../../../../../../../src/core/public';
+import { ChromeBreadcrumb } from '../../../core_types';
import { decodeIpv6 } from '../../../lib/helpers';
import { getNetworkUrl, getIPDetailsUrl } from '../../../components/link_to/redirect_to_network';
import { networkModel } from '../../../store/network';
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/alerts_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/network/navigation/alerts_query_tab_body.tsx
similarity index 95%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/alerts_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/alerts_query_tab_body.tsx
index a5d0207f526d1..4c4f6c06ce1e1 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/navigation/alerts_query_tab_body.tsx
+++ b/x-pack/plugins/siem/public/pages/network/navigation/alerts_query_tab_body.tsx
@@ -6,7 +6,7 @@
import React from 'react';
-import { Filter } from '../../../../../../../../src/plugins/data/common/es_query';
+import { Filter } from '../../../../../../../src/plugins/data/common/es_query';
import { AlertsView } from '../../../components/alerts_viewer';
import { NetworkComponentQueryProps } from './types';
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/conditional_flex_group.tsx b/x-pack/plugins/siem/public/pages/network/navigation/conditional_flex_group.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/conditional_flex_group.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/conditional_flex_group.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/countries_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/network/navigation/countries_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/countries_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/countries_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/dns_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/network/navigation/dns_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/dns_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/dns_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/http_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/network/navigation/http_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/http_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/http_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/index.ts b/x-pack/plugins/siem/public/pages/network/navigation/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/index.ts
rename to x-pack/plugins/siem/public/pages/network/navigation/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/ips_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/network/navigation/ips_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/ips_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/ips_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/nav_tabs.tsx b/x-pack/plugins/siem/public/pages/network/navigation/nav_tabs.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/nav_tabs.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/nav_tabs.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/network_routes.tsx b/x-pack/plugins/siem/public/pages/network/navigation/network_routes.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/network_routes.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/network_routes.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/network_routes_loading.tsx b/x-pack/plugins/siem/public/pages/network/navigation/network_routes_loading.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/network_routes_loading.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/network_routes_loading.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/tls_query_tab_body.tsx b/x-pack/plugins/siem/public/pages/network/navigation/tls_query_tab_body.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/tls_query_tab_body.tsx
rename to x-pack/plugins/siem/public/pages/network/navigation/tls_query_tab_body.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/types.ts b/x-pack/plugins/siem/public/pages/network/navigation/types.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/types.ts
rename to x-pack/plugins/siem/public/pages/network/navigation/types.ts
index 222a99992917d..86890cbec06e1 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/navigation/types.ts
+++ b/x-pack/plugins/siem/public/pages/network/navigation/types.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/';
+import { IIndexPattern } from '../../../../../../../src/plugins/data/common/';
import { NavTab } from '../../../components/navigation/types';
import { FlowTargetSourceDest } from '../../../graphql/types';
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/navigation/utils.ts b/x-pack/plugins/siem/public/pages/network/navigation/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/navigation/utils.ts
rename to x-pack/plugins/siem/public/pages/network/navigation/utils.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx b/x-pack/plugins/siem/public/pages/network/network.test.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx
rename to x-pack/plugins/siem/public/pages/network/network.test.tsx
index 797fef1586518..300cb83c4ce75 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx
+++ b/x-pack/plugins/siem/public/pages/network/network.test.tsx
@@ -11,7 +11,7 @@ import { Router } from 'react-router-dom';
import { MockedProvider } from 'react-apollo/test-utils';
import '../../mock/match_media';
-import { Filter } from '../../../../../../../src/plugins/data/common/es_query';
+import { Filter } from '../../../../../../src/plugins/data/common/es_query';
import { mocksSource } from '../../containers/source/mock';
import { TestProviders, mockGlobalState, apolloClientObservable } from '../../mock';
import { State, createStore } from '../../store';
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/network.tsx b/x-pack/plugins/siem/public/pages/network/network.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/network/network.tsx
rename to x-pack/plugins/siem/public/pages/network/network.tsx
index 9b1ee76e1d376..65b3142c8c074 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/network.tsx
+++ b/x-pack/plugins/siem/public/pages/network/network.tsx
@@ -10,7 +10,7 @@ import { connect, ConnectedProps } from 'react-redux';
import { useParams } from 'react-router-dom';
import { StickyContainer } from 'react-sticky';
-import { esQuery } from '../../../../../../../src/plugins/data/public';
+import { esQuery } from '../../../../../../src/plugins/data/public';
import { EmbeddedMap } from '../../components/embeddables/embedded_map';
import { FiltersGlobal } from '../../components/filters_global';
import { HeaderPage } from '../../components/header_page';
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/network_empty_page.tsx b/x-pack/plugins/siem/public/pages/network/network_empty_page.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/network_empty_page.tsx
rename to x-pack/plugins/siem/public/pages/network/network_empty_page.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/translations.ts b/x-pack/plugins/siem/public/pages/network/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/translations.ts
rename to x-pack/plugins/siem/public/pages/network/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/types.ts b/x-pack/plugins/siem/public/pages/network/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/network/types.ts
rename to x-pack/plugins/siem/public/pages/network/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/alerts_by_category/index.tsx b/x-pack/plugins/siem/public/pages/overview/alerts_by_category/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/overview/alerts_by_category/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/alerts_by_category/index.tsx
index f71d83558ae9d..5d786c99a9d69 100644
--- a/x-pack/legacy/plugins/siem/public/pages/overview/alerts_by_category/index.tsx
+++ b/x-pack/plugins/siem/public/pages/overview/alerts_by_category/index.tsx
@@ -20,7 +20,7 @@ import {
esQuery,
IIndexPattern,
Query,
-} from '../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../src/plugins/data/public';
import { inputsModel } from '../../../store';
import { HostsType } from '../../../store/hosts/model';
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/event_counts/index.test.tsx b/x-pack/plugins/siem/public/pages/overview/event_counts/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/event_counts/index.test.tsx
rename to x-pack/plugins/siem/public/pages/overview/event_counts/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/event_counts/index.tsx b/x-pack/plugins/siem/public/pages/overview/event_counts/index.tsx
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/pages/overview/event_counts/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/event_counts/index.tsx
index 0fc37935b6062..f242b0d84d7c1 100644
--- a/x-pack/legacy/plugins/siem/public/pages/overview/event_counts/index.tsx
+++ b/x-pack/plugins/siem/public/pages/overview/event_counts/index.tsx
@@ -19,7 +19,7 @@ import {
esQuery,
IIndexPattern,
Query,
-} from '../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../src/plugins/data/public';
import { inputsModel } from '../../../store';
const HorizontalSpacer = styled(EuiFlexItem)`
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/events_by_dataset/index.tsx b/x-pack/plugins/siem/public/pages/overview/events_by_dataset/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/overview/events_by_dataset/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/events_by_dataset/index.tsx
index 315aac5fcae9e..58259a7ca86ba 100644
--- a/x-pack/legacy/plugins/siem/public/pages/overview/events_by_dataset/index.tsx
+++ b/x-pack/plugins/siem/public/pages/overview/events_by_dataset/index.tsx
@@ -21,7 +21,7 @@ import {
esQuery,
IIndexPattern,
Query,
-} from '../../../../../../../../src/plugins/data/public';
+} from '../../../../../../../src/plugins/data/public';
import { inputsModel } from '../../../store';
import { HostsTableType, HostsType } from '../../../store/hosts/model';
import { DEFAULT_NUMBER_FORMAT } from '../../../../common/constants';
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/index.tsx b/x-pack/plugins/siem/public/pages/overview/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx b/x-pack/plugins/siem/public/pages/overview/overview.test.tsx
similarity index 95%
rename from x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx
rename to x-pack/plugins/siem/public/pages/overview/overview.test.tsx
index b20cd84295566..c129258fa2e87 100644
--- a/x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx
+++ b/x-pack/plugins/siem/public/pages/overview/overview.test.tsx
@@ -15,14 +15,7 @@ import { TestProviders } from '../../mock';
import { mocksSource } from '../../containers/source/mock';
import { Overview } from './index';
-jest.mock('ui/chrome', () => ({
- getKibanaVersion: () => {
- return 'v8.0.0';
- },
- breadcrumbs: {
- set: jest.fn(),
- },
-}));
+jest.mock('../../lib/kibana');
// Test will fail because we will to need to mock some core services to make the test work
// For now let's forget about SiemSearchBar and QueryBar
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/overview.tsx b/x-pack/plugins/siem/public/pages/overview/overview.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/overview.tsx
rename to x-pack/plugins/siem/public/pages/overview/overview.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/overview_empty/index.tsx b/x-pack/plugins/siem/public/pages/overview/overview_empty/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/overview_empty/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/overview_empty/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/sidebar/index.tsx b/x-pack/plugins/siem/public/pages/overview/sidebar/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/sidebar/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/sidebar/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/sidebar/sidebar.tsx b/x-pack/plugins/siem/public/pages/overview/sidebar/sidebar.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/sidebar/sidebar.tsx
rename to x-pack/plugins/siem/public/pages/overview/sidebar/sidebar.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/signals_by_category/index.tsx b/x-pack/plugins/siem/public/pages/overview/signals_by_category/index.tsx
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/pages/overview/signals_by_category/index.tsx
rename to x-pack/plugins/siem/public/pages/overview/signals_by_category/index.tsx
index 5f78c4c10eb37..b67e4e27146ca 100644
--- a/x-pack/legacy/plugins/siem/public/pages/overview/signals_by_category/index.tsx
+++ b/x-pack/plugins/siem/public/pages/overview/signals_by_category/index.tsx
@@ -10,7 +10,7 @@ import { SignalsHistogramPanel } from '../../detection_engine/components/signals
import { signalsHistogramOptions } from '../../detection_engine/components/signals_histogram_panel/config';
import { useSignalIndex } from '../../../containers/detection_engine/signals/use_signal_index';
import { SetAbsoluteRangeDatePicker } from '../../network/types';
-import { Filter, IIndexPattern, Query } from '../../../../../../../../src/plugins/data/public';
+import { Filter, IIndexPattern, Query } from '../../../../../../../src/plugins/data/public';
import { inputsModel } from '../../../store';
import * as i18n from '../translations';
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/summary.tsx b/x-pack/plugins/siem/public/pages/overview/summary.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/summary.tsx
rename to x-pack/plugins/siem/public/pages/overview/summary.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/translations.ts b/x-pack/plugins/siem/public/pages/overview/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/overview/translations.ts
rename to x-pack/plugins/siem/public/pages/overview/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/pages/timelines/index.tsx b/x-pack/plugins/siem/public/pages/timelines/index.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/timelines/index.tsx
rename to x-pack/plugins/siem/public/pages/timelines/index.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/timelines/timelines_page.tsx b/x-pack/plugins/siem/public/pages/timelines/timelines_page.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/timelines/timelines_page.tsx
rename to x-pack/plugins/siem/public/pages/timelines/timelines_page.tsx
diff --git a/x-pack/legacy/plugins/siem/public/pages/timelines/translations.ts b/x-pack/plugins/siem/public/pages/timelines/translations.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/pages/timelines/translations.ts
rename to x-pack/plugins/siem/public/pages/timelines/translations.ts
diff --git a/x-pack/legacy/plugins/siem/public/plugin.tsx b/x-pack/plugins/siem/public/plugin.tsx
similarity index 55%
rename from x-pack/legacy/plugins/siem/public/plugin.tsx
rename to x-pack/plugins/siem/public/plugin.tsx
index 8be5510cda83a..14ec1038010aa 100644
--- a/x-pack/legacy/plugins/siem/public/plugin.tsx
+++ b/x-pack/plugins/siem/public/plugin.tsx
@@ -4,24 +4,30 @@
* you may not use this file except in compliance with the Elastic License.
*/
+import { i18n } from '@kbn/i18n';
+
import {
AppMountParameters,
CoreSetup,
CoreStart,
PluginInitializerContext,
Plugin as IPlugin,
-} from '../../../../../src/core/public';
-import { HomePublicPluginSetup } from '../../../../../src/plugins/home/public';
-import { DataPublicPluginStart } from '../../../../../src/plugins/data/public';
-import { IEmbeddableStart } from '../../../../../src/plugins/embeddable/public';
-import { Start as NewsfeedStart } from '../../../../../src/plugins/newsfeed/public';
-import { Start as InspectorStart } from '../../../../../src/plugins/inspector/public';
-import { UiActionsStart } from '../../../../../src/plugins/ui_actions/public';
-import { UsageCollectionSetup } from '../../../../../src/plugins/usage_collection/public';
+} from './core_types';
+
+import {
+ HomePublicPluginSetup,
+ FeatureCatalogueCategory,
+} from '../../../../src/plugins/home/public';
+import { DataPublicPluginStart } from '../../../../src/plugins/data/public';
+import { IEmbeddableStart } from '../../../../src/plugins/embeddable/public';
+import { Start as NewsfeedStart } from '../../../../src/plugins/newsfeed/public';
+import { Start as InspectorStart } from '../../../../src/plugins/inspector/public';
+import { UiActionsStart } from '../../../../src/plugins/ui_actions/public';
+import { UsageCollectionSetup } from '../../../../src/plugins/usage_collection/public';
import { initTelemetry } from './lib/telemetry';
import { KibanaServices } from './lib/kibana';
-export { AppMountParameters, CoreSetup, CoreStart, PluginInitializerContext };
+export { AppMountParameters, CoreSetup, CoreStart };
export interface SetupPlugins {
home: HomePublicPluginSetup;
@@ -42,19 +48,35 @@ export type Start = ReturnType;
export class Plugin implements IPlugin {
public id = 'siem';
public name = 'SIEM';
+ private kibanaVersion: string;
constructor(
// @ts-ignore this is added to satisfy the New Platform typing constraint,
// but we're not leveraging any of its functionality yet.
- private readonly initializerContext: PluginInitializerContext
- ) {}
+ initializerContext: PluginInitializerContext
+ ) {
+ this.kibanaVersion = initializerContext.env.packageInfo.version;
+ }
public setup(core: CoreSetup, plugins: SetupPlugins) {
initTelemetry(plugins.usageCollection, this.id);
+ plugins.home.featureCatalogue.register({
+ id: this.id,
+ title: 'SIEM',
+ description: i18n.translate('xpack.siem.featureCatalogueDescription', {
+ defaultMessage: 'Explore security metrics and logs for events and alerts',
+ }),
+ icon: 'securityAnalyticsApp',
+ path: `/app/${this.id}`,
+ showOnHomePage: true,
+ category: FeatureCatalogueCategory.DATA,
+ });
+
core.application.register({
id: this.id,
title: this.name,
+ euiIconType: 'securityAnalyticsApp',
async mount(context, params) {
const [coreStart, startPlugins] = await core.getStartServices();
const { renderApp } = await import('./app');
@@ -67,7 +89,7 @@ export class Plugin implements IPlugin {
}
public start(core: CoreStart, plugins: StartPlugins) {
- KibanaServices.init({ ...core, ...plugins });
+ KibanaServices.init({ ...core, ...plugins, kibanaVersion: this.kibanaVersion });
return {};
}
diff --git a/x-pack/legacy/plugins/siem/public/routes.tsx b/x-pack/plugins/siem/public/routes.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/routes.tsx
rename to x-pack/plugins/siem/public/routes.tsx
diff --git a/x-pack/legacy/plugins/siem/public/shared_imports.ts b/x-pack/plugins/siem/public/shared_imports.ts
similarity index 53%
rename from x-pack/legacy/plugins/siem/public/shared_imports.ts
rename to x-pack/plugins/siem/public/shared_imports.ts
index edd7812b3bd16..7d7da63a6255d 100644
--- a/x-pack/legacy/plugins/siem/public/shared_imports.ts
+++ b/x-pack/plugins/siem/public/shared_imports.ts
@@ -17,7 +17,7 @@ export {
UseField,
useForm,
ValidationFunc,
-} from '../../../../../src/plugins/es_ui_shared/static/forms/hook_form_lib';
-export { Field } from '../../../../../src/plugins/es_ui_shared/static/forms/components';
-export { fieldValidators } from '../../../../../src/plugins/es_ui_shared/static/forms/helpers';
-export { ERROR_CODE } from '../../../../../src/plugins/es_ui_shared/static/forms/helpers/field_validators/types';
+} from '../../../../src/plugins/es_ui_shared/static/forms/hook_form_lib';
+export { Field } from '../../../../src/plugins/es_ui_shared/static/forms/components';
+export { fieldValidators } from '../../../../src/plugins/es_ui_shared/static/forms/helpers';
+export { ERROR_CODE } from '../../../../src/plugins/es_ui_shared/static/forms/helpers/field_validators/types';
diff --git a/x-pack/legacy/plugins/siem/public/store/actions.ts b/x-pack/plugins/siem/public/store/actions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/actions.ts
rename to x-pack/plugins/siem/public/store/actions.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/app/actions.ts b/x-pack/plugins/siem/public/store/app/actions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/app/actions.ts
rename to x-pack/plugins/siem/public/store/app/actions.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/app/index.ts b/x-pack/plugins/siem/public/store/app/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/app/index.ts
rename to x-pack/plugins/siem/public/store/app/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/app/model.ts b/x-pack/plugins/siem/public/store/app/model.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/app/model.ts
rename to x-pack/plugins/siem/public/store/app/model.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/app/reducer.ts b/x-pack/plugins/siem/public/store/app/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/app/reducer.ts
rename to x-pack/plugins/siem/public/store/app/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/app/selectors.ts b/x-pack/plugins/siem/public/store/app/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/app/selectors.ts
rename to x-pack/plugins/siem/public/store/app/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/constants.ts b/x-pack/plugins/siem/public/store/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/constants.ts
rename to x-pack/plugins/siem/public/store/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/drag_and_drop/actions.ts b/x-pack/plugins/siem/public/store/drag_and_drop/actions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/drag_and_drop/actions.ts
rename to x-pack/plugins/siem/public/store/drag_and_drop/actions.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/drag_and_drop/index.ts b/x-pack/plugins/siem/public/store/drag_and_drop/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/drag_and_drop/index.ts
rename to x-pack/plugins/siem/public/store/drag_and_drop/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/drag_and_drop/model.ts b/x-pack/plugins/siem/public/store/drag_and_drop/model.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/drag_and_drop/model.ts
rename to x-pack/plugins/siem/public/store/drag_and_drop/model.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/drag_and_drop/reducer.test.ts b/x-pack/plugins/siem/public/store/drag_and_drop/reducer.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/drag_and_drop/reducer.test.ts
rename to x-pack/plugins/siem/public/store/drag_and_drop/reducer.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/drag_and_drop/reducer.ts b/x-pack/plugins/siem/public/store/drag_and_drop/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/drag_and_drop/reducer.ts
rename to x-pack/plugins/siem/public/store/drag_and_drop/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/drag_and_drop/selectors.ts b/x-pack/plugins/siem/public/store/drag_and_drop/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/drag_and_drop/selectors.ts
rename to x-pack/plugins/siem/public/store/drag_and_drop/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/epic.ts b/x-pack/plugins/siem/public/store/epic.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/epic.ts
rename to x-pack/plugins/siem/public/store/epic.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/actions.ts b/x-pack/plugins/siem/public/store/hosts/actions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/actions.ts
rename to x-pack/plugins/siem/public/store/hosts/actions.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/helpers.test.ts b/x-pack/plugins/siem/public/store/hosts/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/helpers.test.ts
rename to x-pack/plugins/siem/public/store/hosts/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/helpers.ts b/x-pack/plugins/siem/public/store/hosts/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/helpers.ts
rename to x-pack/plugins/siem/public/store/hosts/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/index.ts b/x-pack/plugins/siem/public/store/hosts/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/index.ts
rename to x-pack/plugins/siem/public/store/hosts/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/model.ts b/x-pack/plugins/siem/public/store/hosts/model.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/model.ts
rename to x-pack/plugins/siem/public/store/hosts/model.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/reducer.ts b/x-pack/plugins/siem/public/store/hosts/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/reducer.ts
rename to x-pack/plugins/siem/public/store/hosts/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/hosts/selectors.ts b/x-pack/plugins/siem/public/store/hosts/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/hosts/selectors.ts
rename to x-pack/plugins/siem/public/store/hosts/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/index.ts b/x-pack/plugins/siem/public/store/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/index.ts
rename to x-pack/plugins/siem/public/store/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/actions.ts b/x-pack/plugins/siem/public/store/inputs/actions.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/store/inputs/actions.ts
rename to x-pack/plugins/siem/public/store/inputs/actions.ts
index f9da0e558c655..3e3aa8a54a50d 100644
--- a/x-pack/legacy/plugins/siem/public/store/inputs/actions.ts
+++ b/x-pack/plugins/siem/public/store/inputs/actions.ts
@@ -9,7 +9,7 @@ import actionCreatorFactory from 'typescript-fsa';
import { SavedQuery } from 'src/legacy/core_plugins/data/public';
import { InspectQuery, Refetch, RefetchKql } from './model';
import { InputsModelId } from './constants';
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
const actionCreator = actionCreatorFactory('x-pack/siem/local/inputs');
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/constants.ts b/x-pack/plugins/siem/public/store/inputs/constants.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/inputs/constants.ts
rename to x-pack/plugins/siem/public/store/inputs/constants.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/helpers.test.ts b/x-pack/plugins/siem/public/store/inputs/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/inputs/helpers.test.ts
rename to x-pack/plugins/siem/public/store/inputs/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/helpers.ts b/x-pack/plugins/siem/public/store/inputs/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/inputs/helpers.ts
rename to x-pack/plugins/siem/public/store/inputs/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/index.ts b/x-pack/plugins/siem/public/store/inputs/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/inputs/index.ts
rename to x-pack/plugins/siem/public/store/inputs/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/model.ts b/x-pack/plugins/siem/public/store/inputs/model.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/public/store/inputs/model.ts
rename to x-pack/plugins/siem/public/store/inputs/model.ts
index dab6ef3113df0..ca9ba57210da6 100644
--- a/x-pack/legacy/plugins/siem/public/store/inputs/model.ts
+++ b/x-pack/plugins/siem/public/store/inputs/model.ts
@@ -9,7 +9,7 @@ import { SavedQuery } from 'src/legacy/core_plugins/data/public';
import { Omit } from '../../../common/utility_types';
import { InputsModelId } from './constants';
import { CONSTANTS } from '../../components/url_state/constants';
-import { Query, Filter } from '../../../../../../../src/plugins/data/public';
+import { Query, Filter } from '../../../../../../src/plugins/data/public';
export interface AbsoluteTimeRange {
kind: 'absolute';
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/reducer.ts b/x-pack/plugins/siem/public/store/inputs/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/inputs/reducer.ts
rename to x-pack/plugins/siem/public/store/inputs/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/inputs/selectors.ts b/x-pack/plugins/siem/public/store/inputs/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/inputs/selectors.ts
rename to x-pack/plugins/siem/public/store/inputs/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/model.ts b/x-pack/plugins/siem/public/store/model.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/model.ts
rename to x-pack/plugins/siem/public/store/model.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/actions.ts b/x-pack/plugins/siem/public/store/network/actions.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/actions.ts
rename to x-pack/plugins/siem/public/store/network/actions.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/helpers.test.ts b/x-pack/plugins/siem/public/store/network/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/helpers.test.ts
rename to x-pack/plugins/siem/public/store/network/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/helpers.ts b/x-pack/plugins/siem/public/store/network/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/helpers.ts
rename to x-pack/plugins/siem/public/store/network/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/index.ts b/x-pack/plugins/siem/public/store/network/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/index.ts
rename to x-pack/plugins/siem/public/store/network/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/model.ts b/x-pack/plugins/siem/public/store/network/model.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/model.ts
rename to x-pack/plugins/siem/public/store/network/model.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/reducer.ts b/x-pack/plugins/siem/public/store/network/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/reducer.ts
rename to x-pack/plugins/siem/public/store/network/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/network/selectors.ts b/x-pack/plugins/siem/public/store/network/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/network/selectors.ts
rename to x-pack/plugins/siem/public/store/network/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/reducer.ts b/x-pack/plugins/siem/public/store/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/reducer.ts
rename to x-pack/plugins/siem/public/store/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/selectors.ts b/x-pack/plugins/siem/public/store/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/selectors.ts
rename to x-pack/plugins/siem/public/store/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/store.ts b/x-pack/plugins/siem/public/store/store.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/store.ts
rename to x-pack/plugins/siem/public/store/store.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/actions.ts b/x-pack/plugins/siem/public/store/timeline/actions.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/store/timeline/actions.ts
rename to x-pack/plugins/siem/public/store/timeline/actions.ts
index 51043b999c27e..a03cc2643e014 100644
--- a/x-pack/legacy/plugins/siem/public/store/timeline/actions.ts
+++ b/x-pack/plugins/siem/public/store/timeline/actions.ts
@@ -6,7 +6,7 @@
import actionCreatorFactory from 'typescript-fsa';
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
import { Sort } from '../../components/timeline/body/sort';
import {
DataProvider,
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/defaults.ts b/x-pack/plugins/siem/public/store/timeline/defaults.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/defaults.ts
rename to x-pack/plugins/siem/public/store/timeline/defaults.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/epic.test.ts b/x-pack/plugins/siem/public/store/timeline/epic.test.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/store/timeline/epic.test.ts
rename to x-pack/plugins/siem/public/store/timeline/epic.test.ts
index 13d30825a169c..bb6babcba41ae 100644
--- a/x-pack/legacy/plugins/siem/public/store/timeline/epic.test.ts
+++ b/x-pack/plugins/siem/public/store/timeline/epic.test.ts
@@ -8,7 +8,7 @@ import { TimelineModel } from './model';
import { Direction } from '../../graphql/types';
import { convertTimelineAsInput } from './epic';
-import { Filter, esFilters } from '../../../../../../../src/plugins/data/public';
+import { Filter, esFilters } from '../../../../../../src/plugins/data/public';
describe('Epic Timeline', () => {
describe('#convertTimelineAsInput ', () => {
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/epic.ts b/x-pack/plugins/siem/public/store/timeline/epic.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/store/timeline/epic.ts
rename to x-pack/plugins/siem/public/store/timeline/epic.ts
index e6acff8736492..4fece0572274f 100644
--- a/x-pack/legacy/plugins/siem/public/store/timeline/epic.ts
+++ b/x-pack/plugins/siem/public/store/timeline/epic.ts
@@ -28,7 +28,7 @@ import {
takeUntil,
} from 'rxjs/operators';
-import { esFilters, Filter, MatchAllFilter } from '../../../../../../../src/plugins/data/public';
+import { esFilters, Filter, MatchAllFilter } from '../../../../../../src/plugins/data/public';
import { persistTimelineMutation } from '../../containers/timeline/persist.gql_query';
import {
PersistTimelineMutation,
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/epic_dispatcher_timeline_persistence_queue.ts b/x-pack/plugins/siem/public/store/timeline/epic_dispatcher_timeline_persistence_queue.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/epic_dispatcher_timeline_persistence_queue.ts
rename to x-pack/plugins/siem/public/store/timeline/epic_dispatcher_timeline_persistence_queue.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/epic_favorite.ts b/x-pack/plugins/siem/public/store/timeline/epic_favorite.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/epic_favorite.ts
rename to x-pack/plugins/siem/public/store/timeline/epic_favorite.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/epic_note.ts b/x-pack/plugins/siem/public/store/timeline/epic_note.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/epic_note.ts
rename to x-pack/plugins/siem/public/store/timeline/epic_note.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/epic_pinned_event.ts b/x-pack/plugins/siem/public/store/timeline/epic_pinned_event.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/epic_pinned_event.ts
rename to x-pack/plugins/siem/public/store/timeline/epic_pinned_event.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/helpers.ts b/x-pack/plugins/siem/public/store/timeline/helpers.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/public/store/timeline/helpers.ts
rename to x-pack/plugins/siem/public/store/timeline/helpers.ts
index fa70c1b04608d..19de49918d100 100644
--- a/x-pack/legacy/plugins/siem/public/store/timeline/helpers.ts
+++ b/x-pack/plugins/siem/public/store/timeline/helpers.ts
@@ -6,7 +6,7 @@
import { getOr, omit, uniq, isEmpty, isEqualWith, union } from 'lodash/fp';
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
import { getColumnWidthFromType } from '../../components/timeline/body/column_headers/helpers';
import { Sort } from '../../components/timeline/body/sort';
import {
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/index.ts b/x-pack/plugins/siem/public/store/timeline/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/index.ts
rename to x-pack/plugins/siem/public/store/timeline/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/manage_timeline_id.tsx b/x-pack/plugins/siem/public/store/timeline/manage_timeline_id.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/manage_timeline_id.tsx
rename to x-pack/plugins/siem/public/store/timeline/manage_timeline_id.tsx
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/model.ts b/x-pack/plugins/siem/public/store/timeline/model.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/public/store/timeline/model.ts
rename to x-pack/plugins/siem/public/store/timeline/model.ts
index ef46a8d061c2e..15bd2980e4aeb 100644
--- a/x-pack/legacy/plugins/siem/public/store/timeline/model.ts
+++ b/x-pack/plugins/siem/public/store/timeline/model.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Filter } from '../../../../../../../src/plugins/data/public';
+import { Filter } from '../../../../../../src/plugins/data/public';
import { DataProvider } from '../../components/timeline/data_providers/data_provider';
import { Sort } from '../../components/timeline/body/sort';
import { PinnedEvent, TimelineNonEcsData } from '../../graphql/types';
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/my_epic_timeline_id.ts b/x-pack/plugins/siem/public/store/timeline/my_epic_timeline_id.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/my_epic_timeline_id.ts
rename to x-pack/plugins/siem/public/store/timeline/my_epic_timeline_id.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/reducer.test.ts b/x-pack/plugins/siem/public/store/timeline/reducer.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/reducer.test.ts
rename to x-pack/plugins/siem/public/store/timeline/reducer.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/reducer.ts b/x-pack/plugins/siem/public/store/timeline/reducer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/reducer.ts
rename to x-pack/plugins/siem/public/store/timeline/reducer.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/refetch_queries.ts b/x-pack/plugins/siem/public/store/timeline/refetch_queries.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/refetch_queries.ts
rename to x-pack/plugins/siem/public/store/timeline/refetch_queries.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/selectors.ts b/x-pack/plugins/siem/public/store/timeline/selectors.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/selectors.ts
rename to x-pack/plugins/siem/public/store/timeline/selectors.ts
diff --git a/x-pack/legacy/plugins/siem/public/store/timeline/types.ts b/x-pack/plugins/siem/public/store/timeline/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/store/timeline/types.ts
rename to x-pack/plugins/siem/public/store/timeline/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/api/index.ts b/x-pack/plugins/siem/public/utils/api/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/api/index.ts
rename to x-pack/plugins/siem/public/utils/api/index.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/apollo_context.ts b/x-pack/plugins/siem/public/utils/apollo_context.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/apollo_context.ts
rename to x-pack/plugins/siem/public/utils/apollo_context.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/default_date_settings.test.ts b/x-pack/plugins/siem/public/utils/default_date_settings.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/default_date_settings.test.ts
rename to x-pack/plugins/siem/public/utils/default_date_settings.test.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/default_date_settings.ts b/x-pack/plugins/siem/public/utils/default_date_settings.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/default_date_settings.ts
rename to x-pack/plugins/siem/public/utils/default_date_settings.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/kql/use_update_kql.test.tsx b/x-pack/plugins/siem/public/utils/kql/use_update_kql.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/kql/use_update_kql.test.tsx
rename to x-pack/plugins/siem/public/utils/kql/use_update_kql.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/kql/use_update_kql.tsx b/x-pack/plugins/siem/public/utils/kql/use_update_kql.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/kql/use_update_kql.tsx
rename to x-pack/plugins/siem/public/utils/kql/use_update_kql.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/logo_endpoint/64_color.svg b/x-pack/plugins/siem/public/utils/logo_endpoint/64_color.svg
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/logo_endpoint/64_color.svg
rename to x-pack/plugins/siem/public/utils/logo_endpoint/64_color.svg
diff --git a/x-pack/legacy/plugins/siem/public/utils/route/helpers.ts b/x-pack/plugins/siem/public/utils/route/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/route/helpers.ts
rename to x-pack/plugins/siem/public/utils/route/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/route/index.test.tsx b/x-pack/plugins/siem/public/utils/route/index.test.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/route/index.test.tsx
rename to x-pack/plugins/siem/public/utils/route/index.test.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/route/manage_spy_routes.tsx b/x-pack/plugins/siem/public/utils/route/manage_spy_routes.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/route/manage_spy_routes.tsx
rename to x-pack/plugins/siem/public/utils/route/manage_spy_routes.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/route/spy_routes.tsx b/x-pack/plugins/siem/public/utils/route/spy_routes.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/route/spy_routes.tsx
rename to x-pack/plugins/siem/public/utils/route/spy_routes.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/route/types.ts b/x-pack/plugins/siem/public/utils/route/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/route/types.ts
rename to x-pack/plugins/siem/public/utils/route/types.ts
diff --git a/x-pack/legacy/plugins/siem/public/utils/route/use_route_spy.tsx b/x-pack/plugins/siem/public/utils/route/use_route_spy.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/route/use_route_spy.tsx
rename to x-pack/plugins/siem/public/utils/route/use_route_spy.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/saved_query_services/index.tsx b/x-pack/plugins/siem/public/utils/saved_query_services/index.tsx
similarity index 93%
rename from x-pack/legacy/plugins/siem/public/utils/saved_query_services/index.tsx
rename to x-pack/plugins/siem/public/utils/saved_query_services/index.tsx
index a8ee10ba2b801..335398177f0f4 100644
--- a/x-pack/legacy/plugins/siem/public/utils/saved_query_services/index.tsx
+++ b/x-pack/plugins/siem/public/utils/saved_query_services/index.tsx
@@ -8,7 +8,7 @@ import { useState, useEffect } from 'react';
import {
SavedQueryService,
createSavedQueryService,
-} from '../../../../../../../src/plugins/data/public';
+} from '../../../../../../src/plugins/data/public';
import { useKibana } from '../../lib/kibana';
diff --git a/x-pack/legacy/plugins/siem/public/utils/timeline/use_show_timeline.tsx b/x-pack/plugins/siem/public/utils/timeline/use_show_timeline.tsx
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/timeline/use_show_timeline.tsx
rename to x-pack/plugins/siem/public/utils/timeline/use_show_timeline.tsx
diff --git a/x-pack/legacy/plugins/siem/public/utils/use_mount_appended.ts b/x-pack/plugins/siem/public/utils/use_mount_appended.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/public/utils/use_mount_appended.ts
rename to x-pack/plugins/siem/public/utils/use_mount_appended.ts
diff --git a/x-pack/legacy/plugins/siem/reporter_config.json b/x-pack/plugins/siem/reporter_config.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/reporter_config.json
rename to x-pack/plugins/siem/reporter_config.json
diff --git a/x-pack/legacy/plugins/siem/scripts/check_circular_deps.js b/x-pack/plugins/siem/scripts/check_circular_deps.js
similarity index 87%
rename from x-pack/legacy/plugins/siem/scripts/check_circular_deps.js
rename to x-pack/plugins/siem/scripts/check_circular_deps.js
index 046cc010621d7..fdc3b1532f30a 100644
--- a/x-pack/legacy/plugins/siem/scripts/check_circular_deps.js
+++ b/x-pack/plugins/siem/scripts/check_circular_deps.js
@@ -4,5 +4,5 @@
* you may not use this file except in compliance with the Elastic License.
*/
-require('../../../../../src/setup_node_env');
+require('../../../../src/setup_node_env');
require('../dev_tools/circular_deps/run_check_circular_deps_cli');
diff --git a/x-pack/legacy/plugins/siem/scripts/combined_schema.ts b/x-pack/plugins/siem/scripts/combined_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/scripts/combined_schema.ts
rename to x-pack/plugins/siem/scripts/combined_schema.ts
diff --git a/x-pack/legacy/plugins/siem/scripts/convert_saved_search_to_rules.js b/x-pack/plugins/siem/scripts/convert_saved_search_to_rules.js
similarity index 99%
rename from x-pack/legacy/plugins/siem/scripts/convert_saved_search_to_rules.js
rename to x-pack/plugins/siem/scripts/convert_saved_search_to_rules.js
index 233d4dd7de721..65da56dd09bca 100644
--- a/x-pack/legacy/plugins/siem/scripts/convert_saved_search_to_rules.js
+++ b/x-pack/plugins/siem/scripts/convert_saved_search_to_rules.js
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-require('../../../../../src/setup_node_env');
+require('../../../../src/setup_node_env');
const fs = require('fs');
const path = require('path');
diff --git a/x-pack/legacy/plugins/siem/scripts/extract_tactics_techniques_mitre.js b/x-pack/plugins/siem/scripts/extract_tactics_techniques_mitre.js
similarity index 98%
rename from x-pack/legacy/plugins/siem/scripts/extract_tactics_techniques_mitre.js
rename to x-pack/plugins/siem/scripts/extract_tactics_techniques_mitre.js
index 6cb2a40049631..d4edee2cdfe41 100644
--- a/x-pack/legacy/plugins/siem/scripts/extract_tactics_techniques_mitre.js
+++ b/x-pack/plugins/siem/scripts/extract_tactics_techniques_mitre.js
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-require('../../../../../src/setup_node_env');
+require('../../../../src/setup_node_env');
const fs = require('fs');
// eslint-disable-next-line import/no-extraneous-dependencies
diff --git a/x-pack/legacy/plugins/siem/scripts/generate_types_from_graphql.js b/x-pack/plugins/siem/scripts/generate_types_from_graphql.js
similarity index 99%
rename from x-pack/legacy/plugins/siem/scripts/generate_types_from_graphql.js
rename to x-pack/plugins/siem/scripts/generate_types_from_graphql.js
index 36674fec73e09..e6b063dfd2c07 100644
--- a/x-pack/legacy/plugins/siem/scripts/generate_types_from_graphql.js
+++ b/x-pack/plugins/siem/scripts/generate_types_from_graphql.js
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-require('../../../../../src/setup_node_env');
+require('../../../../src/setup_node_env');
const { join, resolve } = require('path');
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unresolved
diff --git a/x-pack/legacy/plugins/siem/scripts/loop_cypress_tests.js b/x-pack/plugins/siem/scripts/loop_cypress_tests.js
similarity index 100%
rename from x-pack/legacy/plugins/siem/scripts/loop_cypress_tests.js
rename to x-pack/plugins/siem/scripts/loop_cypress_tests.js
diff --git a/x-pack/legacy/plugins/siem/scripts/storybook.js b/x-pack/plugins/siem/scripts/storybook.js
similarity index 100%
rename from x-pack/legacy/plugins/siem/scripts/storybook.js
rename to x-pack/plugins/siem/scripts/storybook.js
diff --git a/x-pack/legacy/plugins/siem/server/client/client.test.ts b/x-pack/plugins/siem/server/client/client.test.ts
similarity index 81%
rename from x-pack/legacy/plugins/siem/server/client/client.test.ts
rename to x-pack/plugins/siem/server/client/client.test.ts
index bfe7b97f43003..9ccbc2284bbb7 100644
--- a/x-pack/legacy/plugins/siem/server/client/client.test.ts
+++ b/x-pack/plugins/siem/server/client/client.test.ts
@@ -10,11 +10,8 @@ import { createMockConfig } from '../lib/detection_engine/routes/__mocks__';
describe('SiemClient', () => {
describe('#signalsIndex', () => {
it('returns the index scoped to the specified spaceId', () => {
- let mockConfig = createMockConfig();
- mockConfig = () => ({
- get: jest.fn(() => 'mockSignalsIndex'),
- has: jest.fn(),
- });
+ const mockConfig = createMockConfig();
+ mockConfig.signalsIndex = 'mockSignalsIndex';
const spaceId = 'fooSpace';
const client = new SiemClient(spaceId, mockConfig);
diff --git a/x-pack/legacy/plugins/siem/server/client/client.ts b/x-pack/plugins/siem/server/client/client.ts
similarity index 56%
rename from x-pack/legacy/plugins/siem/server/client/client.ts
rename to x-pack/plugins/siem/server/client/client.ts
index 245b81d0be97a..6cb0d4cfade77 100644
--- a/x-pack/legacy/plugins/siem/server/client/client.ts
+++ b/x-pack/plugins/siem/server/client/client.ts
@@ -4,17 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Legacy } from 'kibana';
-
-import { APP_ID, SIGNALS_INDEX_KEY } from '../../common/constants';
+import { ConfigType } from '..';
export class SiemClient {
public readonly signalsIndex: string;
- constructor(private spaceId: string, private config: Legacy.Server['config']) {
- const configuredSignalsIndex = this.config().get(
- `xpack.${APP_ID}.${SIGNALS_INDEX_KEY}`
- );
+ constructor(private spaceId: string, private config: ConfigType) {
+ const configuredSignalsIndex = this.config.signalsIndex;
this.signalsIndex = `${configuredSignalsIndex}-${this.spaceId}`;
}
diff --git a/x-pack/legacy/plugins/siem/server/client/factory.test.ts b/x-pack/plugins/siem/server/client/factory.test.ts
similarity index 73%
rename from x-pack/legacy/plugins/siem/server/client/factory.test.ts
rename to x-pack/plugins/siem/server/client/factory.test.ts
index c166b6b838be2..721ab8b495d36 100644
--- a/x-pack/legacy/plugins/siem/server/client/factory.test.ts
+++ b/x-pack/plugins/siem/server/client/factory.test.ts
@@ -4,28 +4,35 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { httpServerMock } from '../../../../../../src/core/server/mocks';
+import { httpServerMock } from '../../../../../src/core/server/mocks';
import { SiemClientFactory } from './factory';
import { SiemClient } from './client';
+import { createMockConfig } from '../lib/detection_engine/routes/__mocks__';
jest.mock('./client');
const mockClient = SiemClient as jest.Mock;
describe('SiemClientFactory', () => {
+ let mockConfig: ReturnType;
+
+ beforeEach(() => {
+ mockConfig = createMockConfig();
+ });
+
describe('#create', () => {
it('constructs a client with the current spaceId', () => {
const factory = new SiemClientFactory();
const mockRequest = httpServerMock.createKibanaRequest();
- factory.setup({ getSpaceId: () => 'mockSpace', config: jest.fn() });
+ factory.setup({ getSpaceId: () => 'mockSpace', config: mockConfig });
factory.create(mockRequest);
- expect(mockClient).toHaveBeenCalledWith('mockSpace', expect.anything());
+ expect(mockClient).toHaveBeenCalledWith('mockSpace', mockConfig);
});
it('constructs a client with the default spaceId if spaces are disabled', () => {
const factory = new SiemClientFactory();
const mockRequest = httpServerMock.createKibanaRequest();
- factory.setup({ getSpaceId: undefined, config: jest.fn() });
+ factory.setup({ getSpaceId: undefined, config: mockConfig });
factory.create(mockRequest);
expect(mockClient).toHaveBeenCalledWith('default', expect.anything());
diff --git a/x-pack/legacy/plugins/siem/server/client/factory.ts b/x-pack/plugins/siem/server/client/factory.ts
similarity index 87%
rename from x-pack/legacy/plugins/siem/server/client/factory.ts
rename to x-pack/plugins/siem/server/client/factory.ts
index d31920bdf2c77..d3d6b84e5b090 100644
--- a/x-pack/legacy/plugins/siem/server/client/factory.ts
+++ b/x-pack/plugins/siem/server/client/factory.ts
@@ -4,14 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Legacy } from 'kibana';
-
-import { KibanaRequest } from '../../../../../../src/core/server';
+import { KibanaRequest } from '../../../../../src/core/server';
import { SiemClient } from './client';
+import { ConfigType } from '..';
interface SetupDependencies {
getSpaceId?: (request: KibanaRequest) => string | undefined;
- config: Legacy.Server['config'];
+ config: ConfigType;
}
export class SiemClientFactory {
diff --git a/x-pack/legacy/plugins/siem/server/client/index.ts b/x-pack/plugins/siem/server/client/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/client/index.ts
rename to x-pack/plugins/siem/server/client/index.ts
diff --git a/x-pack/plugins/siem/server/config.ts b/x-pack/plugins/siem/server/config.ts
index 224043c0c6fe5..25c5af64fce60 100644
--- a/x-pack/plugins/siem/server/config.ts
+++ b/x-pack/plugins/siem/server/config.ts
@@ -6,14 +6,14 @@
import { Observable } from 'rxjs';
import { schema, TypeOf } from '@kbn/config-schema';
+
import { PluginInitializerContext } from '../../../../src/core/server';
-import {
- SIGNALS_INDEX_KEY,
- DEFAULT_SIGNALS_INDEX,
-} from '../../../legacy/plugins/siem/common/constants';
+import { SIGNALS_INDEX_KEY, DEFAULT_SIGNALS_INDEX } from '../common/constants';
export const configSchema = schema.object({
enabled: schema.boolean({ defaultValue: true }),
+ maxRuleImportPayloadBytes: schema.number({ defaultValue: 10485760 }),
+ maxRuleImportExportSize: schema.number({ defaultValue: 10000 }),
[SIGNALS_INDEX_KEY]: schema.string({ defaultValue: DEFAULT_SIGNALS_INDEX }),
});
diff --git a/x-pack/legacy/plugins/siem/server/graphql/authentications/index.ts b/x-pack/plugins/siem/server/graphql/authentications/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/authentications/index.ts
rename to x-pack/plugins/siem/server/graphql/authentications/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/authentications/resolvers.ts b/x-pack/plugins/siem/server/graphql/authentications/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/authentications/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/authentications/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/authentications/schema.gql.ts b/x-pack/plugins/siem/server/graphql/authentications/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/authentications/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/authentications/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/ecs/index.ts b/x-pack/plugins/siem/server/graphql/ecs/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/ecs/index.ts
rename to x-pack/plugins/siem/server/graphql/ecs/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/ecs/resolvers.ts b/x-pack/plugins/siem/server/graphql/ecs/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/ecs/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/ecs/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/ecs/schema.gql.ts b/x-pack/plugins/siem/server/graphql/ecs/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/ecs/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/ecs/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/events/index.ts b/x-pack/plugins/siem/server/graphql/events/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/events/index.ts
rename to x-pack/plugins/siem/server/graphql/events/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/events/resolvers.ts b/x-pack/plugins/siem/server/graphql/events/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/events/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/events/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/events/schema.gql.ts b/x-pack/plugins/siem/server/graphql/events/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/events/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/events/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/hosts/index.ts b/x-pack/plugins/siem/server/graphql/hosts/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/hosts/index.ts
rename to x-pack/plugins/siem/server/graphql/hosts/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/hosts/resolvers.ts b/x-pack/plugins/siem/server/graphql/hosts/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/hosts/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/hosts/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/hosts/schema.gql.ts b/x-pack/plugins/siem/server/graphql/hosts/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/hosts/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/hosts/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/index.ts b/x-pack/plugins/siem/server/graphql/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/index.ts
rename to x-pack/plugins/siem/server/graphql/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/ip_details/index.ts b/x-pack/plugins/siem/server/graphql/ip_details/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/ip_details/index.ts
rename to x-pack/plugins/siem/server/graphql/ip_details/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/ip_details/resolvers.ts b/x-pack/plugins/siem/server/graphql/ip_details/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/ip_details/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/ip_details/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/ip_details/schema.gql.ts b/x-pack/plugins/siem/server/graphql/ip_details/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/ip_details/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/ip_details/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/kpi_hosts/index.ts b/x-pack/plugins/siem/server/graphql/kpi_hosts/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/kpi_hosts/index.ts
rename to x-pack/plugins/siem/server/graphql/kpi_hosts/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/kpi_hosts/resolvers.ts b/x-pack/plugins/siem/server/graphql/kpi_hosts/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/kpi_hosts/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/kpi_hosts/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/kpi_hosts/schema.gql.ts b/x-pack/plugins/siem/server/graphql/kpi_hosts/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/kpi_hosts/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/kpi_hosts/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/kpi_network/index.ts b/x-pack/plugins/siem/server/graphql/kpi_network/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/kpi_network/index.ts
rename to x-pack/plugins/siem/server/graphql/kpi_network/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/kpi_network/resolvers.ts b/x-pack/plugins/siem/server/graphql/kpi_network/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/kpi_network/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/kpi_network/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/kpi_network/schema.gql.ts b/x-pack/plugins/siem/server/graphql/kpi_network/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/kpi_network/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/kpi_network/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/matrix_histogram/index.ts b/x-pack/plugins/siem/server/graphql/matrix_histogram/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/matrix_histogram/index.ts
rename to x-pack/plugins/siem/server/graphql/matrix_histogram/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/matrix_histogram/resolvers.ts b/x-pack/plugins/siem/server/graphql/matrix_histogram/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/matrix_histogram/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/matrix_histogram/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/matrix_histogram/schema.gql.ts b/x-pack/plugins/siem/server/graphql/matrix_histogram/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/matrix_histogram/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/matrix_histogram/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/network/index.ts b/x-pack/plugins/siem/server/graphql/network/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/network/index.ts
rename to x-pack/plugins/siem/server/graphql/network/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/network/resolvers.ts b/x-pack/plugins/siem/server/graphql/network/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/network/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/network/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/network/schema.gql.ts b/x-pack/plugins/siem/server/graphql/network/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/network/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/network/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/note/index.ts b/x-pack/plugins/siem/server/graphql/note/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/note/index.ts
rename to x-pack/plugins/siem/server/graphql/note/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/note/resolvers.ts b/x-pack/plugins/siem/server/graphql/note/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/note/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/note/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/note/schema.gql.ts b/x-pack/plugins/siem/server/graphql/note/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/note/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/note/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/overview/index.ts b/x-pack/plugins/siem/server/graphql/overview/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/overview/index.ts
rename to x-pack/plugins/siem/server/graphql/overview/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/overview/resolvers.ts b/x-pack/plugins/siem/server/graphql/overview/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/overview/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/overview/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/overview/schema.gql.ts b/x-pack/plugins/siem/server/graphql/overview/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/overview/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/overview/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/pinned_event/index.ts b/x-pack/plugins/siem/server/graphql/pinned_event/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/pinned_event/index.ts
rename to x-pack/plugins/siem/server/graphql/pinned_event/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/pinned_event/resolvers.ts b/x-pack/plugins/siem/server/graphql/pinned_event/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/pinned_event/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/pinned_event/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/pinned_event/schema.gql.ts b/x-pack/plugins/siem/server/graphql/pinned_event/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/pinned_event/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/pinned_event/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_date/index.ts b/x-pack/plugins/siem/server/graphql/scalar_date/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_date/index.ts
rename to x-pack/plugins/siem/server/graphql/scalar_date/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_date/resolvers.test.ts b/x-pack/plugins/siem/server/graphql/scalar_date/resolvers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_date/resolvers.test.ts
rename to x-pack/plugins/siem/server/graphql/scalar_date/resolvers.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_date/resolvers.ts b/x-pack/plugins/siem/server/graphql/scalar_date/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_date/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/scalar_date/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_date/schema.gql.ts b/x-pack/plugins/siem/server/graphql/scalar_date/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_date/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/scalar_date/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_any/index.ts b/x-pack/plugins/siem/server/graphql/scalar_to_any/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_any/index.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_any/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_any/resolvers.ts b/x-pack/plugins/siem/server/graphql/scalar_to_any/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_any/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_any/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_any/schema.gql.ts b/x-pack/plugins/siem/server/graphql/scalar_to_any/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_any/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_any/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/index.ts b/x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/index.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.test.ts b/x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.test.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.ts b/x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/schema.gql.ts b/x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_boolean_array/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_boolean_array/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/index.ts b/x-pack/plugins/siem/server/graphql/scalar_to_date_array/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/index.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_date_array/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/resolvers.test.ts b/x-pack/plugins/siem/server/graphql/scalar_to_date_array/resolvers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/resolvers.test.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_date_array/resolvers.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/resolvers.ts b/x-pack/plugins/siem/server/graphql/scalar_to_date_array/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_date_array/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/schema.gql.ts b/x-pack/plugins/siem/server/graphql/scalar_to_date_array/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_date_array/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_date_array/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/index.ts b/x-pack/plugins/siem/server/graphql/scalar_to_number_array/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/index.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_number_array/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/resolvers.test.ts b/x-pack/plugins/siem/server/graphql/scalar_to_number_array/resolvers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/resolvers.test.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_number_array/resolvers.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/resolvers.ts b/x-pack/plugins/siem/server/graphql/scalar_to_number_array/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_number_array/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/schema.gql.ts b/x-pack/plugins/siem/server/graphql/scalar_to_number_array/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/scalar_to_number_array/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/scalar_to_number_array/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/source_status/index.ts b/x-pack/plugins/siem/server/graphql/source_status/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/source_status/index.ts
rename to x-pack/plugins/siem/server/graphql/source_status/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/source_status/resolvers.ts b/x-pack/plugins/siem/server/graphql/source_status/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/source_status/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/source_status/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/source_status/schema.gql.ts b/x-pack/plugins/siem/server/graphql/source_status/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/source_status/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/source_status/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/sources/index.ts b/x-pack/plugins/siem/server/graphql/sources/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/sources/index.ts
rename to x-pack/plugins/siem/server/graphql/sources/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/sources/resolvers.ts b/x-pack/plugins/siem/server/graphql/sources/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/sources/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/sources/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/sources/schema.gql.ts b/x-pack/plugins/siem/server/graphql/sources/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/sources/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/sources/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/timeline/index.ts b/x-pack/plugins/siem/server/graphql/timeline/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/timeline/index.ts
rename to x-pack/plugins/siem/server/graphql/timeline/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/timeline/resolvers.ts b/x-pack/plugins/siem/server/graphql/timeline/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/timeline/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/timeline/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/timeline/schema.gql.ts b/x-pack/plugins/siem/server/graphql/timeline/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/timeline/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/timeline/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/tls/index.ts b/x-pack/plugins/siem/server/graphql/tls/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/tls/index.ts
rename to x-pack/plugins/siem/server/graphql/tls/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/tls/resolvers.ts b/x-pack/plugins/siem/server/graphql/tls/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/tls/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/tls/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/tls/schema.gql.ts b/x-pack/plugins/siem/server/graphql/tls/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/tls/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/tls/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/types.ts b/x-pack/plugins/siem/server/graphql/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/types.ts
rename to x-pack/plugins/siem/server/graphql/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/uncommon_processes/index.ts b/x-pack/plugins/siem/server/graphql/uncommon_processes/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/uncommon_processes/index.ts
rename to x-pack/plugins/siem/server/graphql/uncommon_processes/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/uncommon_processes/resolvers.ts b/x-pack/plugins/siem/server/graphql/uncommon_processes/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/uncommon_processes/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/uncommon_processes/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/uncommon_processes/schema.gql.ts b/x-pack/plugins/siem/server/graphql/uncommon_processes/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/uncommon_processes/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/uncommon_processes/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/who_am_i/index.ts b/x-pack/plugins/siem/server/graphql/who_am_i/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/who_am_i/index.ts
rename to x-pack/plugins/siem/server/graphql/who_am_i/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/who_am_i/resolvers.ts b/x-pack/plugins/siem/server/graphql/who_am_i/resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/who_am_i/resolvers.ts
rename to x-pack/plugins/siem/server/graphql/who_am_i/resolvers.ts
diff --git a/x-pack/legacy/plugins/siem/server/graphql/who_am_i/schema.gql.ts b/x-pack/plugins/siem/server/graphql/who_am_i/schema.gql.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/graphql/who_am_i/schema.gql.ts
rename to x-pack/plugins/siem/server/graphql/who_am_i/schema.gql.ts
diff --git a/x-pack/legacy/plugins/siem/server/init_server.ts b/x-pack/plugins/siem/server/init_server.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/init_server.ts
rename to x-pack/plugins/siem/server/init_server.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/authentications/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/authentications/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/authentications/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/authentications/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/authentications/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/authentications/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/authentications/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/authentications/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/authentications/index.ts b/x-pack/plugins/siem/server/lib/authentications/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/authentications/index.ts
rename to x-pack/plugins/siem/server/lib/authentications/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/authentications/query.dsl.ts b/x-pack/plugins/siem/server/lib/authentications/query.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/authentications/query.dsl.ts
rename to x-pack/plugins/siem/server/lib/authentications/query.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/authentications/types.ts b/x-pack/plugins/siem/server/lib/authentications/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/authentications/types.ts
rename to x-pack/plugins/siem/server/lib/authentications/types.ts
diff --git a/x-pack/plugins/siem/server/lib/case/saved_object_mappings.ts b/x-pack/plugins/siem/server/lib/case/saved_object_mappings.ts
new file mode 100644
index 0000000000000..27aafd3c1c01e
--- /dev/null
+++ b/x-pack/plugins/siem/server/lib/case/saved_object_mappings.ts
@@ -0,0 +1,69 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+// Temporary file to write mappings for case
+// while Saved Object Mappings API is programmed for the NP
+// See: https://github.com/elastic/kibana/issues/50309
+
+export const caseSavedObjectType = 'case-workflow';
+export const caseCommentSavedObjectType = 'case-workflow-comment';
+
+export const caseSavedObjectMappings = {
+ properties: {
+ created_at: {
+ type: 'date',
+ },
+ description: {
+ type: 'text',
+ },
+ title: {
+ type: 'keyword',
+ },
+ created_by: {
+ properties: {
+ username: {
+ type: 'keyword',
+ },
+ full_name: {
+ type: 'keyword',
+ },
+ },
+ },
+ state: {
+ type: 'keyword',
+ },
+ tags: {
+ type: 'keyword',
+ },
+ updated_at: {
+ type: 'date',
+ },
+ },
+};
+
+export const caseCommentSavedObjectMappings = {
+ properties: {
+ comment: {
+ type: 'text',
+ },
+ created_at: {
+ type: 'date',
+ },
+ created_by: {
+ properties: {
+ full_name: {
+ type: 'keyword',
+ },
+ username: {
+ type: 'keyword',
+ },
+ },
+ },
+ updated_at: {
+ type: 'date',
+ },
+ },
+};
diff --git a/x-pack/legacy/plugins/siem/server/lib/compose/kibana.ts b/x-pack/plugins/siem/server/lib/compose/kibana.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/compose/kibana.ts
rename to x-pack/plugins/siem/server/lib/compose/kibana.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/configuration/adapter_types.ts b/x-pack/plugins/siem/server/lib/configuration/adapter_types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/configuration/adapter_types.ts
rename to x-pack/plugins/siem/server/lib/configuration/adapter_types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/configuration/index.ts b/x-pack/plugins/siem/server/lib/configuration/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/configuration/index.ts
rename to x-pack/plugins/siem/server/lib/configuration/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/configuration/inmemory_configuration_adapter.ts b/x-pack/plugins/siem/server/lib/configuration/inmemory_configuration_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/configuration/inmemory_configuration_adapter.ts
rename to x-pack/plugins/siem/server/lib/configuration/inmemory_configuration_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/README.md b/x-pack/plugins/siem/server/lib/detection_engine/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/errors/bad_request_error.ts b/x-pack/plugins/siem/server/lib/detection_engine/errors/bad_request_error.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/errors/bad_request_error.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/errors/bad_request_error.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/create_bootstrap_index.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/create_bootstrap_index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/create_bootstrap_index.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/create_bootstrap_index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/delete_all_index.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/delete_all_index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/delete_all_index.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/delete_all_index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/delete_policy.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/delete_policy.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/delete_policy.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/delete_policy.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/delete_template.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/delete_template.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/delete_template.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/delete_template.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_index_exists.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/get_index_exists.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_index_exists.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/get_index_exists.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_index_exists.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/get_index_exists.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_index_exists.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/get_index_exists.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_policy_exists.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/get_policy_exists.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_policy_exists.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/get_policy_exists.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_template_exists.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/get_template_exists.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/get_template_exists.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/get_template_exists.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/read_index.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/read_index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/read_index.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/read_index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/set_policy.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/set_policy.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/set_policy.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/set_policy.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/index/set_template.ts b/x-pack/plugins/siem/server/lib/detection_engine/index/set_template.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/index/set_template.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/index/set_template.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/privileges/read_privileges.ts b/x-pack/plugins/siem/server/lib/detection_engine/privileges/read_privileges.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/privileges/read_privileges.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/privileges/read_privileges.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/index.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/index.ts
similarity index 74%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/index.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/index.ts
index 1ccd43c06aacc..150a57cb9a9d1 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/index.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/index.ts
@@ -11,7 +11,9 @@ import { responseMock } from './response_factory';
export { requestMock, requestContextMock, responseMock, serverMock };
-export const createMockConfig = () => () => ({
- get: jest.fn(),
- has: jest.fn(),
+export const createMockConfig = () => ({
+ signalsIndex: 'mock-signals-index',
+ enabled: true,
+ maxRuleImportPayloadBytes: 10485760,
+ maxRuleImportExportSize: 10000,
});
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request.ts
similarity index 79%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request.ts
index 8856a3463aab3..5f9246db7dfd5 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { httpServerMock } from '../../../../../../../../../src/core/server/mocks';
+import { httpServerMock } from '../../../../../../../../src/core/server/mocks';
export const requestMock = {
create: httpServerMock.createKibanaRequest,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_context.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_context.ts
similarity index 82%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_context.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_context.ts
index ebf6b3ae79ea8..1c980f0a939b3 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_context.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_context.ts
@@ -4,14 +4,14 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { RequestHandlerContext } from '../../../../../../../../../src/core/server';
+import { RequestHandlerContext } from '../../../../../../../../src/core/server';
import {
coreMock,
elasticsearchServiceMock,
savedObjectsClientMock,
-} from '../../../../../../../../../src/core/server/mocks';
-import { alertsClientMock } from '../../../../../../../../plugins/alerting/server/mocks';
-import { actionsClientMock } from '../../../../../../../../plugins/actions/server/mocks';
+} from '../../../../../../../../src/core/server/mocks';
+import { alertsClientMock } from '../../../../../../../plugins/alerting/server/mocks';
+import { actionsClientMock } from '../../../../../../../plugins/actions/server/mocks';
const createMockClients = () => ({
actionsClient: actionsClientMock.create(),
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_responses.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_responses.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_responses.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_responses.ts
index 3c1a01fd58c60..460e89dd02b72 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_responses.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/request_responses.ts
@@ -5,7 +5,7 @@
*/
import { SavedObjectsFindResponse } from 'kibana/server';
-import { ActionResult } from '../../../../../../../../plugins/actions/server';
+import { ActionResult } from '../../../../../../../plugins/actions/server';
import {
SignalsStatusRestParams,
SignalsQueryRestParams,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/response_factory.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/response_factory.ts
similarity index 79%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/response_factory.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/response_factory.ts
index 3e0eda9961403..e6c03d382d9db 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/response_factory.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/response_factory.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { httpServerMock } from '../../../../../../../../../src/core/server/mocks';
+import { httpServerMock } from '../../../../../../../../src/core/server/mocks';
export const responseMock = {
create: httpServerMock.createResponseFactory,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/server.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/server.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/server.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/server.ts
index 824d1f2bec334..c08e626adb323 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/server.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/server.ts
@@ -9,8 +9,8 @@ import {
RouteConfig,
KibanaRequest,
RequestHandlerContext,
-} from '../../../../../../../../../src/core/server';
-import { httpServiceMock } from '../../../../../../../../../src/core/server/mocks';
+} from '../../../../../../../../src/core/server';
+import { httpServiceMock } from '../../../../../../../../src/core/server/mocks';
import { requestContextMock } from './request_context';
import { responseMock as responseFactoryMock } from './response_factory';
import { requestMock } from '.';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/test_adapters.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/test_adapters.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/test_adapters.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/test_adapters.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/__mocks__/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/__mocks__/utils.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/create_index_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/create_index_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/create_index_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/create_index_route.ts
index 36764439462c3..d38dbaa99c542 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/create_index_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/create_index_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_INDEX_URL } from '../../../../../common/constants';
import { transformError, buildSiemResponse } from '../utils';
import { getIndexExists } from '../../index/get_index_exists';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/delete_index_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/delete_index_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/delete_index_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/delete_index_route.ts
index aa418c11d9d16..2d494f8038f56 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/delete_index_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/delete_index_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_INDEX_URL } from '../../../../../common/constants';
import { transformError, buildSiemResponse } from '../utils';
import { getIndexExists } from '../../index/get_index_exists';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/ecs_mapping.json b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/ecs_mapping.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/ecs_mapping.json
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/ecs_mapping.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/get_signals_template.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/read_index_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/read_index_route.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/read_index_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/read_index_route.ts
index 4fc5a4e1f347f..09ae99716bf02 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/read_index_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/read_index_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_INDEX_URL } from '../../../../../common/constants';
import { transformError, buildSiemResponse } from '../utils';
import { getIndexExists } from '../../index/get_index_exists';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/signals_mapping.json b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/signals_mapping.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/signals_mapping.json
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/signals_mapping.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/signals_policy.json b/x-pack/plugins/siem/server/lib/detection_engine/routes/index/signals_policy.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/index/signals_policy.json
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/index/signals_policy.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.ts
index 81ce4a9c3f2fc..c6d4888f65575 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/privileges/read_privileges_route.ts
@@ -6,7 +6,7 @@
import { merge } from 'lodash/fp';
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_PRIVILEGES_URL } from '../../../../../common/constants';
import { buildSiemResponse, transformError } from '../utils';
import { readPrivileges } from '../../privileges/read_privileges';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.ts
index 4e08188af0d12..06b4f2675b11e 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/add_prepackaged_rules_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_PREPACKAGED_URL } from '../../../../../common/constants';
import { getIndexExists } from '../../index/get_index_exists';
import { transformError, buildSiemResponse } from '../utils';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.ts
index ee8539faacf3e..ccc44475d753f 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_bulk_route.ts
@@ -6,7 +6,7 @@
import uuid from 'uuid';
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { createRules } from '../../rules/create_rules';
import { RuleAlertParamsRest } from '../../types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.ts
index cef7ded2b50b4..aec600d5e0b52 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/create_rules_route.ts
@@ -6,7 +6,7 @@
import uuid from 'uuid';
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { createRules } from '../../rules/create_rules';
import { IRuleSavedAttributesSavedObjectAttributes } from '../../rules/types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.ts
index c56f34588cbc6..f441e86a4220f 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_bulk_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter, RouteConfig, RequestHandler } from '../../../../../../../../../src/core/server';
+import { IRouter, RouteConfig, RequestHandler } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { queryRulesBulkSchema } from '../schemas/query_rules_bulk_schema';
import { rulesBulkSchema } from '../schemas/response/rules_bulk_schema';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.ts
index 753b281dbc09e..6edab76aac363 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/delete_rules_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { deleteRules } from '../../rules/delete_rules';
import { queryRulesSchema } from '../schemas/query_rules_schema';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts
similarity index 90%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts
index c434f42780e47..6ad02176e3869 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts
@@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
-import { LegacyServices } from '../../../../types';
+import { ConfigType } from '../../../..';
import { ExportRulesRequestParams } from '../../rules/types';
import { getNonPackagedRulesCount } from '../../rules/get_existing_prepackaged_rules';
import { exportRulesSchema, exportRulesQuerySchema } from '../schemas/export_rules_schema';
@@ -14,7 +14,7 @@ import { getExportByObjectIds } from '../../rules/get_export_by_object_ids';
import { getExportAll } from '../../rules/get_export_all';
import { transformError, buildRouteValidation, buildSiemResponse } from '../utils';
-export const exportRulesRoute = (router: IRouter, config: LegacyServices['config']) => {
+export const exportRulesRoute = (router: IRouter, config: ConfigType) => {
router.post(
{
path: `${DETECTION_ENGINE_RULES_URL}/_export`,
@@ -38,7 +38,7 @@ export const exportRulesRoute = (router: IRouter, config: LegacyServices['config
}
try {
- const exportSizeLimit = config().get('savedObjects.maxImportExportSize');
+ const exportSizeLimit = config.maxRuleImportExportSize;
if (request.body?.objects != null && request.body.objects.length > exportSizeLimit) {
return siemResponse.error({
statusCode: 400,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.ts
index 961859417ef1b..d05ce7fc03e6b 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { findRules } from '../../rules/find_rules';
import {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.ts
index 4f4ae7c2c1fa6..cccb37af50e98 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/find_rules_status_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { findRulesStatusesSchema } from '../schemas/find_rules_statuses_schema';
import {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.ts
index 7e16b4495593e..a5b0a51b9519e 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/get_prepackaged_rules_status_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_PREPACKAGED_URL } from '../../../../../common/constants';
import { transformError, buildSiemResponse } from '../utils';
import { getPrepackagedRules } from '../../rules/get_prepackaged_rules';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.test.ts
similarity index 94%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.test.ts
index c224e0f055b85..d591eab74038c 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.test.ts
@@ -21,11 +21,10 @@ import {
} from '../__mocks__/request_responses';
import { createMockConfig, requestContextMock, serverMock, requestMock } from '../__mocks__';
import { importRulesRoute } from './import_rules_route';
-import { DEFAULT_SIGNALS_INDEX } from '../../../../../common/constants';
import * as createRulesStreamFromNdJson from '../../rules/create_rules_stream_from_ndjson';
describe('import_rules_route', () => {
- let config = createMockConfig();
+ let config: ReturnType;
let server: ReturnType;
let request: ReturnType;
let { clients, context } = requestContextMock.createTools();
@@ -38,32 +37,12 @@ describe('import_rules_route', () => {
jest.restoreAllMocks();
jest.clearAllMocks();
+ config = createMockConfig();
server = serverMock.create();
({ clients, context } = requestContextMock.createTools());
const hapiStream = buildHapiStream(ruleIdsToNdJsonString(['rule-1']));
request = getImportRulesRequest(hapiStream);
- config = () => ({
- get: jest.fn(value => {
- switch (value) {
- case 'savedObjects.maxImportPayloadBytes': {
- return 10000;
- }
- case 'savedObjects.maxImportExportSize': {
- return 10000;
- }
- case 'xpack.siem.signalsIndex': {
- return DEFAULT_SIGNALS_INDEX;
- }
- default: {
- const dummyMock = jest.fn();
- return dummyMock();
- }
- }
- }),
- has: jest.fn(),
- });
-
clients.clusterClient.callAsCurrentUser.mockResolvedValue(getNonEmptyIndex()); // index exists
clients.alertsClient.find.mockResolvedValue(getEmptyFindResult()); // no extant rules
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts
index d9fc9b4e3c04f..1c116bd613cd8 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts
@@ -7,10 +7,10 @@
import { chunk } from 'lodash/fp';
import { extname } from 'path';
-import { IRouter } from '../../../../../../../../../src/core/server';
-import { createPromiseFromStreams } from '../../../../../../../../../src/legacy/utils/streams';
+import { IRouter } from '../../../../../../../../src/core/server';
+import { createPromiseFromStreams } from '../../../../../../../../src/legacy/utils/streams';
+import { ConfigType } from '../../../..';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
-import { LegacyServices } from '../../../../types';
import { createRules } from '../../rules/create_rules';
import { ImportRulesRequestParams } from '../../rules/types';
import { readRules } from '../../rules/read_rules';
@@ -37,7 +37,7 @@ type PromiseFromStreams = ImportRuleAlertRest | Error;
const CHUNK_PARSED_OBJECT_SIZE = 10;
-export const importRulesRoute = (router: IRouter, config: LegacyServices['config']) => {
+export const importRulesRoute = (router: IRouter, config: ConfigType) => {
router.post(
{
path: `${DETECTION_ENGINE_RULES_URL}/_import`,
@@ -48,7 +48,7 @@ export const importRulesRoute = (router: IRouter, config: LegacyServices['config
options: {
tags: ['access:siem'],
body: {
- maxBytes: config().get('savedObjects.maxImportPayloadBytes'),
+ maxBytes: config.maxRuleImportPayloadBytes,
output: 'stream',
},
},
@@ -78,7 +78,7 @@ export const importRulesRoute = (router: IRouter, config: LegacyServices['config
});
}
- const objectLimit = config().get('savedObjects.maxImportExportSize');
+ const objectLimit = config.maxRuleImportExportSize;
try {
const readStream = createRulesStreamFromNdJson(objectLimit);
const parsedObjects = await createPromiseFromStreams([
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.ts
index 7ca16a75fb562..5ef30ea0ca177 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_bulk_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import {
IRuleSavedAttributesSavedObjectAttributes,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.ts
index dce5f4037db1c..89cc44d76b941 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/patch_rules_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { patchRules } from '../../rules/patch_rules';
import {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.ts
index e4117166ed4fa..bfa76471ea4f3 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/read_rules_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import { getIdError } from './utils';
import { transformValidate } from './validate';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.ts
index 953fb16d26ac6..95639441ec79d 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_bulk_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import {
IRuleSavedAttributesSavedObjectAttributes,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.ts
index fbb930d780f01..1c29579b29020 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/update_rules_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_RULES_URL } from '../../../../../common/constants';
import {
UpdateRuleAlertParamsRest,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/utils.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/utils.test.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/utils.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/utils.test.ts
index 25f0151923e2e..7ff9cfe95290a 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/utils.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/utils.test.ts
@@ -25,9 +25,9 @@ import { BulkError, ImportSuccessError } from '../utils';
import { sampleRule } from '../../signals/__mocks__/es_results';
import { getSimpleRule } from '../__mocks__/utils';
import { createRulesStreamFromNdJson } from '../../rules/create_rules_stream_from_ndjson';
-import { createPromiseFromStreams } from '../../../../../../../../../src/legacy/utils/streams';
-import { PartialAlert } from '../../../../../../../../plugins/alerting/server';
-import { SanitizedAlert } from '../../../../../../../../plugins/alerting/server/types';
+import { createPromiseFromStreams } from '../../../../../../../../src/legacy/utils/streams';
+import { PartialAlert } from '../../../../../../../plugins/alerting/server';
+import { SanitizedAlert } from '../../../../../../../plugins/alerting/server/types';
type PromiseFromStreams = ImportRuleAlertRest | Error;
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/utils.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/utils.ts
index 064bd8315969e..f0834102640fc 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/utils.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/utils.ts
@@ -8,7 +8,7 @@ import { pickBy, countBy } from 'lodash/fp';
import { SavedObject, SavedObjectsFindResponse } from 'kibana/server';
import uuid from 'uuid';
-import { PartialAlert, FindResult } from '../../../../../../../../plugins/alerting/server';
+import { PartialAlert, FindResult } from '../../../../../../../plugins/alerting/server';
import { INTERNAL_IDENTIFIER } from '../../../../../common/constants';
import {
RuleAlertType,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/validate.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/validate.test.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/validate.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/validate.test.ts
index 812552aef0ed8..03f86e8f7873d 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/validate.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/validate.test.ts
@@ -13,7 +13,7 @@ import {
transformValidateBulkError,
} from './validate';
import { getResult } from '../__mocks__/request_responses';
-import { FindResult } from '../../../../../../../../plugins/alerting/server';
+import { FindResult } from '../../../../../../../plugins/alerting/server';
import { RulesSchema } from '../schemas/response/rules_schema';
import { BulkError } from '../utils';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/validate.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/validate.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/validate.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/rules/validate.ts
index e654da99fe67b..10843800c21ac 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/rules/validate.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/rules/validate.ts
@@ -9,7 +9,7 @@ import { fold } from 'fp-ts/lib/Either';
import { pipe } from 'fp-ts/lib/pipeable';
import * as t from 'io-ts';
-import { PartialAlert, FindResult } from '../../../../../../../../plugins/alerting/server';
+import { PartialAlert, FindResult } from '../../../../../../../plugins/alerting/server';
import { formatErrors } from '../schemas/response/utils';
import {
isAlertType,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/add_prepackaged_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_bulk_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/create_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/export_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_statuses_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_statuses_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_statuses_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/find_rules_statuses_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/import_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_bulk_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/patch_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_bulk_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/query_signals_index_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/__mocks__/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/__mocks__/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/__mocks__/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/__mocks__/utils.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/check_type_dependents.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/error_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/exact_check.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/find_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/import_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/prepackaged_rules_status_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_bulk_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/schemas.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/schemas.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/schemas.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/schemas.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/type_timeline_only_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/response/utils.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/schemas.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/schemas.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/schemas.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/schemas.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/set_signal_status_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/iso_date_string.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/positive_integer_greater_than_zero.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/postive_integer.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/postive_integer.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/postive_integer.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/postive_integer.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/references_default_array.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/risk_score.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/types/uuid.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_bulk_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/schemas/update_rules_schema.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals_route.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals_route.ts
index c1cba641de3ef..d5a963b1b4eb4 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/signals/open_close_signals_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_SIGNALS_STATUS_URL } from '../../../../../common/constants';
import { SignalsStatusRestParams } from '../../signals/types';
import { setSignalsStatusSchema } from '../schemas/set_signal_status_schema';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.ts
index 77b62b058fa54..d12d18c6043fd 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/signals/query_signals_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_QUERY_SIGNALS_URL } from '../../../../../common/constants';
import { SignalsQueryRestParams } from '../../signals/types';
import { querySignalsSchema } from '../schemas/query_signals_index_schema';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/tags/read_tags_route.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/tags/read_tags_route.ts
similarity index 94%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/tags/read_tags_route.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/tags/read_tags_route.ts
index e12bf50169c17..e5b3078bb1b99 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/tags/read_tags_route.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/tags/read_tags_route.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../../../../src/core/server';
+import { IRouter } from '../../../../../../../../src/core/server';
import { DETECTION_ENGINE_TAGS_URL } from '../../../../../common/constants';
import { transformError, buildSiemResponse } from '../utils';
import { readTags } from '../../tags/read_tags';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/utils.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/utils.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/utils.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/utils.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/routes/utils.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/routes/utils.ts
index 79c2f47658f7e..9903840b99c6f 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/routes/utils.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/routes/utils.ts
@@ -12,7 +12,7 @@ import {
RouteValidationFunction,
KibanaResponseFactory,
CustomHttpResponseOptions,
-} from '../../../../../../../../src/core/server';
+} from '../../../../../../../src/core/server';
import { BadRequestError } from '../errors/bad_request_error';
export interface OutputError {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/add_tags.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/add_tags.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/add_tags.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/add_tags.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/add_tags.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/add_tags.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/add_tags.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/add_tags.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules.ts
index c8205859407c0..92449ef1e01f2 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Alert } from '../../../../../../../plugins/alerting/common';
+import { Alert } from '../../../../../../plugins/alerting/common';
import { APP_ID, SIGNALS_ID } from '../../../../common/constants';
import { CreateRuleParams } from './types';
import { addTags } from './add_tags';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.ts
index 3e22999528101..6eaf12f5eb389 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/create_rules_stream_from_ndjson.ts
@@ -11,7 +11,7 @@ import {
createMapStream,
createFilterStream,
createConcatStream,
-} from '../../../../../../../../src/legacy/utils/streams';
+} from '../../../../../../../src/legacy/utils/streams';
import { importRulesSchema } from '../routes/schemas/import_rules_schema';
import { BadRequestError } from '../errors/bad_request_error';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/delete_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/delete_rules.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/delete_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/delete_rules.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/find_rules.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/find_rules.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/find_rules.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/find_rules.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/find_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/find_rules.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/find_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/find_rules.ts
index f333a7c340705..78fd1548813df 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/find_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/find_rules.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { FindResult } from '../../../../../../../plugins/alerting/server';
+import { FindResult } from '../../../../../../plugins/alerting/server';
import { SIGNALS_ID } from '../../../../common/constants';
import { FindRuleParams } from './types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.test.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.test.ts
index 9774d10a37d6f..8e8c862593204 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.test.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { alertsClientMock } from '../../../../../../../plugins/alerting/server/mocks';
+import { alertsClientMock } from '../../../../../../plugins/alerting/server/mocks';
import {
getResult,
getFindResultWithSingleHit,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.ts
index b5e826ed42723..1f8e64f6378a4 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_existing_prepackaged_rules.ts
@@ -5,7 +5,7 @@
*/
import { INTERNAL_IMMUTABLE_KEY } from '../../../../common/constants';
-import { AlertsClient } from '../../../../../../../plugins/alerting/server';
+import { AlertsClient } from '../../../../../../plugins/alerting/server';
import { RuleAlertType, isAlertTypes } from './types';
import { findRules } from './find_rules';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_all.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_all.test.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_all.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_all.test.ts
index 33f60bf0ba543..f5c5eab89b640 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_all.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_all.test.ts
@@ -9,7 +9,7 @@ import {
getFindResultWithSingleHit,
FindHit,
} from '../routes/__mocks__/request_responses';
-import { alertsClientMock } from '../../../../../../../plugins/alerting/server/mocks';
+import { alertsClientMock } from '../../../../../../plugins/alerting/server/mocks';
import { getExportAll } from './get_export_all';
describe('getExportAll', () => {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_all.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_all.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_all.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_all.ts
index 434919f80e149..5460f927797f8 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_all.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_all.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AlertsClient } from '../../../../../../../plugins/alerting/server';
+import { AlertsClient } from '../../../../../../plugins/alerting/server';
import { getNonPackagedRules } from './get_existing_prepackaged_rules';
import { getExportDetailsNdjson } from './get_export_details_ndjson';
import { transformAlertsToRules, transformRulesToNdjson } from '../routes/rules/utils';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.test.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.test.ts
index 83b487163bdfb..02ae297b477a6 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.test.ts
@@ -11,7 +11,7 @@ import {
FindHit,
} from '../routes/__mocks__/request_responses';
import * as readRules from './read_rules';
-import { alertsClientMock } from '../../../../../../../plugins/alerting/server/mocks';
+import { alertsClientMock } from '../../../../../../plugins/alerting/server/mocks';
describe('get_export_by_object_ids', () => {
beforeEach(() => {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.ts
index e3b38a879fc3d..6c3d4d4f94e5b 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_by_object_ids.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AlertsClient } from '../../../../../../../plugins/alerting/server';
+import { AlertsClient } from '../../../../../../plugins/alerting/server';
import { getExportDetailsNdjson } from './get_export_details_ndjson';
import { isAlertType } from '../rules/types';
import { readRules } from './read_rules';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_export_details_ndjson.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_prepackaged_rules.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_install.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/get_rules_to_update.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/install_prepacked_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/install_prepacked_rules.ts
similarity index 87%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/install_prepacked_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/install_prepacked_rules.ts
index 3d9ec128963f6..e792ff5d71f07 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/install_prepacked_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/install_prepacked_rules.ts
@@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Alert } from '../../../../../../../plugins/alerting/common';
-import { ActionsClient } from '../../../../../../../plugins/actions/server';
-import { AlertsClient } from '../../../../../../../plugins/alerting/server';
+import { Alert } from '../../../../../../plugins/alerting/common';
+import { ActionsClient } from '../../../../../../plugins/actions/server';
+import { AlertsClient } from '../../../../../../plugins/alerting/server';
import { createRules } from './create_rules';
import { PrepackagedRules } from '../types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/patch_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/patch_rules.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/patch_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/patch_rules.ts
index 5fdef59a72f04..d499e39fd3b3e 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/patch_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/patch_rules.ts
@@ -5,7 +5,7 @@
*/
import { defaults } from 'lodash/fp';
-import { PartialAlert } from '../../../../../../../plugins/alerting/server';
+import { PartialAlert } from '../../../../../../plugins/alerting/server';
import { readRules } from './read_rules';
import { PatchRuleParams, IRuleSavedAttributesSavedObjectAttributes } from './types';
import { addTags } from './add_tags';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/403_response_to_a_post.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/403_response_to_a_post.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/403_response_to_a_post.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/403_response_to_a_post.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/405_response_method_not_allowed.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/405_response_method_not_allowed.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/405_response_method_not_allowed.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/405_response_method_not_allowed.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_adversary_behavior_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_adversary_behavior_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_adversary_behavior_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_adversary_behavior_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_dumping_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_cred_manipulation_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_exploit_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_malware_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_permission_theft_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_process_injection_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_detected.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_detected.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_detected.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_detected.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_prevented.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_prevented.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_prevented.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/elastic_endpoint_security_ransomware_prevented.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adding_the_hidden_file_attribute_with_via_attribexe.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adding_the_hidden_file_attribute_with_via_attribexe.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adding_the_hidden_file_attribute_with_via_attribexe.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adding_the_hidden_file_attribute_with_via_attribexe.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adobe_hijack_persistence.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adobe_hijack_persistence.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adobe_hijack_persistence.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_adobe_hijack_persistence.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_clearing_windows_event_logs.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_clearing_windows_event_logs.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_clearing_windows_event_logs.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_clearing_windows_event_logs.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_delete_volume_usn_journal_with_fsutil.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_delete_volume_usn_journal_with_fsutil.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_delete_volume_usn_journal_with_fsutil.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_delete_volume_usn_journal_with_fsutil.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_deleting_backup_catalogs_with_wbadmin.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_deleting_backup_catalogs_with_wbadmin.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_deleting_backup_catalogs_with_wbadmin.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_deleting_backup_catalogs_with_wbadmin.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_direct_outbound_smb_connection.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_direct_outbound_smb_connection.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_direct_outbound_smb_connection.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_direct_outbound_smb_connection.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_disable_windows_firewall_rules_with_netsh.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_disable_windows_firewall_rules_with_netsh.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_disable_windows_firewall_rules_with_netsh.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_disable_windows_firewall_rules_with_netsh.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_encoding_or_decoding_files_via_certutil.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_encoding_or_decoding_files_via_certutil.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_encoding_or_decoding_files_via_certutil.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_encoding_or_decoding_files_via_certutil.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_scheduled_task_commands.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_scheduled_task_commands.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_scheduled_task_commands.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_scheduled_task_commands.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_service_commands.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_service_commands.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_service_commands.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_local_service_commands.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_msbuild_making_network_connections.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_msbuild_making_network_connections.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_msbuild_making_network_connections.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_msbuild_making_network_connections.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_mshta_making_network_connections.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_mshta_making_network_connections.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_mshta_making_network_connections.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_mshta_making_network_connections.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_psexec_lateral_movement_command.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_psexec_lateral_movement_command.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_psexec_lateral_movement_command.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_psexec_lateral_movement_command.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_office_child_process.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_office_child_process.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_office_child_process.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_office_child_process.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_outlook_child_process.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_outlook_child_process.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_outlook_child_process.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_suspicious_ms_outlook_child_process.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_system_shells_via_services.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_system_shells_via_services.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_system_shells_via_services.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_system_shells_via_services.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_network_connection_via_rundll32.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_network_connection_via_rundll32.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_network_connection_via_rundll32.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_network_connection_via_rundll32.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_parentchild_relationship.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_parentchild_relationship.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_parentchild_relationship.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_parentchild_relationship.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_process_network_connection.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_process_network_connection.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_process_network_connection.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_unusual_process_network_connection.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_user_account_creation.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_user_account_creation.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_user_account_creation.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_user_account_creation.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_vssadmin.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_vssadmin.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_vssadmin.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_vssadmin.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_wmic.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_wmic.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_wmic.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_volume_shadow_copy_deletion_via_wmic.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_windows_script_executing_powershell.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_windows_script_executing_powershell.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_windows_script_executing_powershell.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/eql_windows_script_executing_powershell.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/index.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/index.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_hping_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_hping_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_hping_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_hping_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_iodine_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_iodine_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_iodine_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_iodine_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_kernel_module_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_kernel_module_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_kernel_module_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_kernel_module_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_mknod_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_mknod_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_mknod_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_mknod_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_netcat_network_connection.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_netcat_network_connection.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_netcat_network_connection.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_netcat_network_connection.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nmap_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nmap_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nmap_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nmap_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nping_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nping_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nping_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_nping_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_process_started_in_temp_directory.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_process_started_in_temp_directory.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_process_started_in_temp_directory.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_process_started_in_temp_directory.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_shell_activity_by_web_server.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_shell_activity_by_web_server.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_shell_activity_by_web_server.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_shell_activity_by_web_server.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_socat_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_socat_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_socat_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_socat_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_strace_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_strace_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_strace_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_strace_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_tcpdump_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_tcpdump_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_tcpdump_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_tcpdump_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_whoami_commmand.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_whoami_commmand.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_whoami_commmand.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/linux_whoami_commmand.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_dns_directly_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_dns_directly_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_dns_directly_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_dns_directly_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ftp_file_transfer_protocol_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ftp_file_transfer_protocol_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ftp_file_transfer_protocol_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ftp_file_transfer_protocol_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_irc_internet_relay_chat_protocol_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_irc_internet_relay_chat_protocol_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_irc_internet_relay_chat_protocol_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_irc_internet_relay_chat_protocol_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_nat_traversal_port_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_nat_traversal_port_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_nat_traversal_port_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_nat_traversal_port_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_26_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_26_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_26_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_26_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_8000_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_8000_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_8000_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_port_8000_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_pptp_point_to_point_tunneling_protocol_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_pptp_point_to_point_tunneling_protocol_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_pptp_point_to_point_tunneling_protocol_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_pptp_point_to_point_tunneling_protocol_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_proxy_port_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_proxy_port_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_proxy_port_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_proxy_port_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_from_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_from_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_from_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_from_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rdp_remote_desktop_protocol_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_from_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_from_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_from_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_from_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_rpc_remote_procedure_call_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smb_windows_file_sharing_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smb_windows_file_sharing_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smb_windows_file_sharing_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smb_windows_file_sharing_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smtp_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smtp_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smtp_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_smtp_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_sql_server_port_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_sql_server_port_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_sql_server_port_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_sql_server_port_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_from_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_from_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_from_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_from_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_ssh_secure_shell_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_telnet_port_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_telnet_port_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_telnet_port_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_telnet_port_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_tor_activity_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_tor_activity_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_tor_activity_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_tor_activity_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_from_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_from_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_from_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_from_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/network_vnc_virtual_network_computing_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/notice.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/notice.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/notice.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/notice.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/null_user_agent.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/null_user_agent.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/null_user_agent.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/null_user_agent.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/sqlmap_user_agent.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/sqlmap_user_agent.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/sqlmap_user_agent.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/sqlmap_user_agent.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_prompt_connecting_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_prompt_connecting_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_prompt_connecting_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_prompt_connecting_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_powershell.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_powershell.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_powershell.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_powershell.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_svchost.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_svchost.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_svchost.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_command_shell_started_by_svchost.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_defense_evasion_via_filter_manager.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_defense_evasion_via_filter_manager.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_defense_evasion_via_filter_manager.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_defense_evasion_via_filter_manager.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_compiled_html_file.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_compiled_html_file.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_compiled_html_file.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_compiled_html_file.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_regsvr32.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_regsvr32.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_regsvr32.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_regsvr32.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_trusted_developer_utilities.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_trusted_developer_utilities.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_trusted_developer_utilities.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_execution_via_trusted_developer_utilities.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_html_help_executable_program_connecting_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_html_help_executable_program_connecting_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_html_help_executable_program_connecting_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_html_help_executable_program_connecting_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_misc_lolbin_connecting_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_misc_lolbin_connecting_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_misc_lolbin_connecting_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_misc_lolbin_connecting_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_persistence_via_application_shimming.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_persistence_via_application_shimming.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_persistence_via_application_shimming.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_persistence_via_application_shimming.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_priv_escalation_via_accessibility_features.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_priv_escalation_via_accessibility_features.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_priv_escalation_via_accessibility_features.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_priv_escalation_via_accessibility_features.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_process_discovery_via_tasklist_command.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_process_discovery_via_tasklist_command.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_process_discovery_via_tasklist_command.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_process_discovery_via_tasklist_command.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_register_server_program_connecting_to_the_internet.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_register_server_program_connecting_to_the_internet.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_register_server_program_connecting_to_the_internet.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_register_server_program_connecting_to_the_internet.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_signed_binary_proxy_execution.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_signed_binary_proxy_execution.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_signed_binary_proxy_execution.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_signed_binary_proxy_execution.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_suspicious_process_started_by_a_script.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_suspicious_process_started_by_a_script.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_suspicious_process_started_by_a_script.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_suspicious_process_started_by_a_script.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_whoami_command_activity.json b/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_whoami_command_activity.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_whoami_command_activity.json
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules/windows_whoami_command_activity.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/read_rules.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/read_rules.test.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/read_rules.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/read_rules.test.ts
index 862ea9d2dcbe5..35b519feb6bb1 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/read_rules.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/read_rules.test.ts
@@ -5,7 +5,7 @@
*/
import { readRules } from './read_rules';
-import { alertsClientMock } from '../../../../../../../plugins/alerting/server/mocks';
+import { alertsClientMock } from '../../../../../../plugins/alerting/server/mocks';
import { getResult, getFindResultWithSingleHit } from '../routes/__mocks__/request_responses';
class TestError extends Error {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/read_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/read_rules.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/read_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/read_rules.ts
index 94e4e6357a4a0..19f22f3ab50a2 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/read_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/read_rules.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { SanitizedAlert } from '../../../../../../../plugins/alerting/common';
+import { SanitizedAlert } from '../../../../../../plugins/alerting/common';
import { INTERNAL_RULE_ID_KEY } from '../../../../common/constants';
import { findRules } from './find_rules';
import { ReadRuleParams, isAlertType } from './types';
diff --git a/x-pack/plugins/siem/server/lib/detection_engine/rules/saved_object_mappings.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/saved_object_mappings.ts
new file mode 100644
index 0000000000000..cf0d89554a3b5
--- /dev/null
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/saved_object_mappings.ts
@@ -0,0 +1,33 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+export const ruleStatusSavedObjectType = 'siem-detection-engine-rule-status';
+
+export const ruleStatusSavedObjectMappings = {
+ properties: {
+ alertId: {
+ type: 'keyword',
+ },
+ status: {
+ type: 'keyword',
+ },
+ statusDate: {
+ type: 'date',
+ },
+ lastFailureAt: {
+ type: 'date',
+ },
+ lastSuccessAt: {
+ type: 'date',
+ },
+ lastFailureMessage: {
+ type: 'text',
+ },
+ lastSuccessMessage: {
+ type: 'text',
+ },
+ },
+};
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/types.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/types.ts
similarity index 91%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/types.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/types.ts
index 1efa46c6b8b57..903a5a431665a 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/types.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/types.ts
@@ -13,11 +13,10 @@ import {
SavedObjectsFindResponse,
SavedObjectsClientContract,
} from 'kibana/server';
-import { AlertsClient, PartialAlert } from '../../../../../../../plugins/alerting/server';
-import { Alert } from '../../../../../../../plugins/alerting/common';
+import { AlertsClient, PartialAlert } from '../../../../../../plugins/alerting/server';
+import { Alert } from '../../../../../../plugins/alerting/common';
import { SIGNALS_ID } from '../../../../common/constants';
-import { LegacyRequest } from '../../../types';
-import { ActionsClient } from '../../../../../../../plugins/actions/server';
+import { ActionsClient } from '../../../../../actions/server';
import { RuleAlertParams, RuleTypeParams, RuleAlertParamsRest } from '../types';
export type PatchRuleAlertParamsRest = Partial & {
@@ -39,14 +38,6 @@ export interface FindParamsRest {
filter: string;
}
-export interface PatchRulesRequest extends LegacyRequest {
- payload: PatchRuleAlertParamsRest;
-}
-
-export interface UpdateRulesRequest extends LegacyRequest {
- payload: UpdateRuleAlertParamsRest;
-}
-
export interface RuleAlertType extends Alert {
params: RuleTypeParams;
}
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_prepacked_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/update_prepacked_rules.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_prepacked_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/update_prepacked_rules.ts
index 7889267a7267b..5443f15f46062 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_prepacked_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/update_prepacked_rules.ts
@@ -5,8 +5,8 @@
*/
import { SavedObjectsClientContract } from 'kibana/server';
-import { ActionsClient } from '../../../../../../../plugins/actions/server';
-import { AlertsClient } from '../../../../../../../plugins/alerting/server';
+import { ActionsClient } from '../../../../../../plugins/actions/server';
+import { AlertsClient } from '../../../../../../plugins/alerting/server';
import { patchRules } from './patch_rules';
import { PrepackagedRules } from '../types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_rules.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/update_rules.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_rules.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/update_rules.ts
index 3a10841b70d7e..771784184eae7 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_rules.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/rules/update_rules.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { PartialAlert } from '../../../../../../../plugins/alerting/server';
+import { PartialAlert } from '../../../../../../plugins/alerting/server';
import { readRules } from './read_rules';
import { IRuleSavedAttributesSavedObjectAttributes, UpdateRuleParams } from './types';
import { addTags } from './add_tags';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/utils.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/utils.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/utils.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/utils.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/rules/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/rules/utils.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/add_prepackaged_rules.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/add_prepackaged_rules.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/add_prepackaged_rules.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/add_prepackaged_rules.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/check_env_variables.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/check_env_variables.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/check_env_variables.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/check_env_variables.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/convert_saved_search_to_rules.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/convert_saved_search_to_rules.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/convert_saved_search_to_rules.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/convert_saved_search_to_rules.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_actions.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_actions.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_actions.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_actions.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_alert_tasks.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_alert_tasks.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_alert_tasks.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_alert_tasks.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_alerts.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_alerts.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_alerts.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_alerts.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_api_keys.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_api_keys.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_api_keys.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_api_keys.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_statuses.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_statuses.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_all_statuses.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_all_statuses.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_bulk.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_bulk.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_bulk.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_bulk.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_id.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_id.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_id.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_id.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_rule_id.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_rule_id.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_rule_id.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_rule_by_rule_id.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_signal_index.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_signal_index.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/delete_signal_index.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/delete_signal_index.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id_to_file.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id_to_file.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id_to_file.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules_by_rule_id_to_file.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules_to_file.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules_to_file.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/export_rules_to_file.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/export_rules_to_file.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rule_by_filter.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rule_by_filter.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rule_by_filter.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rule_by_filter.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rules.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rules.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules_sort.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rules_sort.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules_sort.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rules_sort.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules_statuses_by_ids.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rules_statuses_by_ids.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules_statuses_by_ids.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/find_rules_statuses_by_ids.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_saved_object.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/find_saved_object.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_saved_object.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/find_saved_object.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_action_instances.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_action_instances.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_action_instances.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_action_instances.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_action_types.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_action_types.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_action_types.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_action_types.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_alert_instances.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_alert_instances.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_alert_instances.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_alert_instances.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_alert_tasks.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_alert_tasks.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_alert_tasks.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_alert_tasks.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_alert_types.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_alert_types.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_alert_types.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_alert_types.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_prepackaged_rules_status.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_prepackaged_rules_status.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_prepackaged_rules_status.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_prepackaged_rules_status.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_privileges.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_privileges.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_privileges.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_privileges.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_id.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_id.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_id.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_id.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_rule_id.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_rule_id.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_rule_id.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_rule_by_rule_id.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_saved_objects.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_saved_objects.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_saved_objects.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_saved_objects.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_signal_index.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_signal_index.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_signal_index.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_signal_index.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_tags.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/get_tags.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/get_tags.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/get_tags.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/hard_reset.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/hard_reset.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/hard_reset.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/hard_reset.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/import_rules.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/import_rules.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/import_rules.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/import_rules.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/import_rules_no_overwrite.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/import_rules_no_overwrite.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/import_rules_no_overwrite.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/import_rules_no_overwrite.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/patch_rule.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/patch_rule.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/patch_rule.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/patch_rule.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/patch_rule_bulk.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/patch_rule_bulk.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/patch_rule_bulk.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/patch_rule_bulk.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_rule.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/post_rule.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_rule.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/post_rule.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_rule_bulk.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/post_rule_bulk.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_rule_bulk.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/post_rule_bulk.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_signal_index.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/post_signal_index.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_signal_index.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/post_signal_index.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_x_rules.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/post_x_rules.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/post_x_rules.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/post_x_rules.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/regen_prepackge_rules_index.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/regen_prepackge_rules_index.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/regen_prepackge_rules_index.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/regen_prepackge_rules_index.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/delete_by_rule_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/delete_by_rule_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/delete_by_rule_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/delete_by_rule_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_ruleid_queries.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_ruleid_queries.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_ruleid_queries.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_ruleid_queries.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_simplest_queries.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_simplest_queries.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_simplest_queries.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/multiple_simplest_queries.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/patch_names.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/patch_names.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/patch_names.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/bulk/patch_names.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/export/ruleid_queries.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/export/ruleid_queries.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/export/ruleid_queries.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/export/ruleid_queries.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/import/multiple_ruleid_queries.ndjson b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/import/multiple_ruleid_queries.ndjson
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/import/multiple_ruleid_queries.ndjson
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/import/multiple_ruleid_queries.ndjson
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/disable_rule.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/disable_rule.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/disable_rule.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/disable_rule.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/enabled_rule.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/enabled_rule.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/enabled_rule.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/enabled_rule.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_rule_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_rule_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_rule_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_update_risk_score_by_rule_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_updated_name.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_updated_name.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_updated_name.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/simplest_updated_name.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_interval.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_interval.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_interval.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_interval.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_query_everything.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_query_everything.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_query_everything.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_query_everything.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_tags.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_tags.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_tags.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_tags.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_timelineid.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_timelineid.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_timelineid.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_timelineid.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_version.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_version.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_version.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/patches/update_version.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_disabled.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_disabled.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_disabled.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_disabled.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_lucene.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_lucene.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_lucene.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_lucene.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_mitre_attack.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_mitre_attack.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_mitre_attack.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_mitre_attack.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_timelineid.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_timelineid.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_timelineid.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_timelineid.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_everything.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_everything.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_everything.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_everything.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_filter.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_filter.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_filter.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_filter.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_meta_data.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_meta_data.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_meta_data.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_meta_data.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_rule_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_rule_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_rule_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_rule_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_tags.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_tags.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_tags.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/query_with_tags.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_filters.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_filters.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_filters.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_filters.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_query.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_query.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_query.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/queries/simplest_query.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_by_rule_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_by_rule_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_by_rule_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_by_rule_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_everything.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_everything.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_everything.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_everything.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_filters.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_filters.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_filters.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_filters.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query_filter.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query_filter.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query_filter.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/saved_query_with_query_filter.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/simplest_saved_query.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/simplest_saved_query.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/simplest_saved_query.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/saved_queries/simplest_saved_query.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/imports/multiple_ruleid_queries_corrupted.ndjson b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/imports/multiple_ruleid_queries_corrupted.ndjson
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/imports/multiple_ruleid_queries_corrupted.ndjson
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/imports/multiple_ruleid_queries_corrupted.ndjson
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_with_empty_query.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_with_empty_query.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_with_empty_query.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_with_empty_query.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_without_query.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_without_query.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_without_query.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/filter_without_query.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_meatadata_lucene.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_meatadata_lucene.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_meatadata_lucene.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_meatadata_lucene.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_metadata.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_metadata.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_metadata.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_filter_ui_metadata.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_with_errors.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_with_errors.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_with_errors.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/query_with_errors.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/saved_query_ui_meta_empty_query.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/saved_query_ui_meta_empty_query.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/saved_query_ui_meta_empty_query.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/queries/saved_query_ui_meta_empty_query.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/query_single_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/query_single_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/query_single_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/query_single_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_1.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_1.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_1.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_1.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_2.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_2.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_2.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/depth_test/signal_on_signal_depth_2.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/query_single_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/query_single_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/query_single_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/query_single_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/signal_on_signal.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/signal_on_signal.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/signal_on_signal.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/test_cases/signals_on_signals/halting_test/signal_on_signal.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/README.md b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/README.md
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/README.md
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/README.md
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/disable_rule.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/disable_rule.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/disable_rule.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/disable_rule.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/enabled_rule.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/enabled_rule.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/enabled_rule.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/enabled_rule.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_rule_id.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_rule_id.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_rule_id.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_update_risk_score_by_rule_id.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_updated_name.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_updated_name.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_updated_name.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/simplest_updated_name.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_interval.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_interval.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_interval.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_interval.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_query_everything.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_query_everything.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_query_everything.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_query_everything.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_tags.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_tags.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_tags.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_tags.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_timelineid.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_timelineid.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_timelineid.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_timelineid.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_version.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_version.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_version.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/rules/updates/update_version.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signal_index_exists.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signal_index_exists.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signal_index_exists.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signal_index_exists.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/aggs_signals.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/aggs_signals.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/aggs_signals.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/aggs_signals.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/put_signal_doc.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/put_signal_doc.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/put_signal_doc.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/put_signal_doc.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/query_signals.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/query_signals.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/query_signals.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/query_signals.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/sample_signal.json b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/sample_signal.json
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/sample_signal.json
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/sample_signal.json
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_id.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_id.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_id.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_id.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_query.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_query.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_query.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/signals/set_status_with_query.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/update_rule.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/update_rule.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/update_rule.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/update_rule.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/update_rule_bulk.sh b/x-pack/plugins/siem/server/lib/detection_engine/scripts/update_rule_bulk.sh
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/update_rule_bulk.sh
rename to x-pack/plugins/siem/server/lib/detection_engine/scripts/update_rule_bulk.sh
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/__mocks__/es_results.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/__mocks__/es_results.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/__mocks__/es_results.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/__mocks__/es_results.ts
index fded0696ff8bf..366a4739f3e51 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/__mocks__/es_results.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/__mocks__/es_results.ts
@@ -6,7 +6,7 @@
import { SignalSourceHit, SignalSearchResponse } from '../types';
import { Logger } from 'kibana/server';
-import { loggingServiceMock } from '../../../../../../../../../src/core/server/mocks';
+import { loggingServiceMock } from '../../../../../../../../src/core/server/mocks';
import { RuleTypeParams, OutputRuleAlertRest } from '../../types';
export const sampleRuleAlertParams = (
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_bulk_body.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_event_type_signal.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_events_query.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_events_query.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_events_query.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_events_query.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_events_query.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_events_query.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_events_query.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_events_query.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_rule.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_rule.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_rule.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_rule.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_rule.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_rule.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_rule.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_rule.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_signal.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_signal.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_signal.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_signal.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_signal.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/build_signal.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/build_signal.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/build_signal.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_filter.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_filter.test.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_filter.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/get_filter.test.ts
index b49f43ce9e7ac..0cfa384dc8e1a 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_filter.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_filter.test.ts
@@ -7,7 +7,7 @@
import { getQueryFilter, getFilter } from './get_filter';
import { savedObjectsClientMock } from 'src/core/server/mocks';
import { PartialFilter } from '../types';
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
describe('get_filter', () => {
let savedObjectsClient = savedObjectsClientMock.create();
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_filter.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_filter.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_filter.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/get_filter.ts
index 9c3e15de7ce90..0bc53de0daf77 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_filter.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_filter.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
import { assertUnreachable } from '../../../utils/build_query';
import {
Filter,
@@ -12,7 +12,7 @@ import {
esQuery,
esFilters,
IIndexPattern,
-} from '../../../../../../../../src/plugins/data/server';
+} from '../../../../../../../src/plugins/data/server';
import { PartialFilter, RuleAlertParams } from '../types';
import { BadRequestError } from '../errors/bad_request_error';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.test.ts
similarity index 90%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.test.ts
index 18286dc7754e0..0ee66ee948a46 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.test.ts
@@ -7,8 +7,8 @@
import { savedObjectsClientMock } from 'src/core/server/mocks';
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
import { getInputIndex } from './get_input_output_index';
-import { defaultIndexPattern } from '../../../../default_index_pattern';
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
+import { DEFAULT_INDEX_PATTERN } from '../../../../common/constants';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
describe('get_input_output_index', () => {
let savedObjectsClient = savedObjectsClientMock.create();
@@ -77,7 +77,7 @@ describe('get_input_output_index', () => {
},
}));
const inputIndex = await getInputIndex(servicesMock, '8.0.0', null);
- expect(inputIndex).toEqual(defaultIndexPattern);
+ expect(inputIndex).toEqual(DEFAULT_INDEX_PATTERN);
});
test('Returns a saved object inputIndex default from constants if inputIndex passed in is undefined and the key is also null', async () => {
@@ -87,17 +87,17 @@ describe('get_input_output_index', () => {
},
}));
const inputIndex = await getInputIndex(servicesMock, '8.0.0', undefined);
- expect(inputIndex).toEqual(defaultIndexPattern);
+ expect(inputIndex).toEqual(DEFAULT_INDEX_PATTERN);
});
test('Returns a saved object inputIndex default from constants if both passed in inputIndex and configuration attributes are missing and the index is undefined', async () => {
const inputIndex = await getInputIndex(servicesMock, '8.0.0', undefined);
- expect(inputIndex).toEqual(defaultIndexPattern);
+ expect(inputIndex).toEqual(DEFAULT_INDEX_PATTERN);
});
test('Returns a saved object inputIndex default from constants if both passed in inputIndex and configuration attributes are missing and the index is null', async () => {
const inputIndex = await getInputIndex(servicesMock, '8.0.0', null);
- expect(inputIndex).toEqual(defaultIndexPattern);
+ expect(inputIndex).toEqual(DEFAULT_INDEX_PATTERN);
});
});
});
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.ts
similarity index 81%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.ts
index c93990e25b52b..70a6eaa2b5014 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/get_input_output_index.ts
@@ -4,8 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
-import { defaultIndexPattern } from '../../../../default_index_pattern';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
+import { DEFAULT_INDEX_PATTERN } from '../../../../common/constants';
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
export const getInputIndex = async (
@@ -22,7 +22,7 @@ export const getInputIndex = async (
if (configuration.attributes != null && configuration.attributes[DEFAULT_INDEX_KEY] != null) {
return configuration.attributes[DEFAULT_INDEX_KEY];
} else {
- return defaultIndexPattern;
+ return DEFAULT_INDEX_PATTERN;
}
}
};
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.ts
index 1cfd2f812a195..19579e6f092e9 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/search_after_bulk_create.ts
@@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
import { RuleTypeParams } from '../types';
-import { Logger } from '../../../../../../../../src/core/server';
+import { Logger } from '../../../../../../../src/core/server';
import { singleSearchAfter } from './single_search_after';
import { singleBulkCreate } from './single_bulk_create';
import { SignalSearchResponse } from './types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/signal_rule_alert_type.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/signal_rule_alert_type.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/signal_rule_alert_type.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/signal_rule_alert_type.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.ts
index 7d6d6d99fa422..2e3fc4ed8e435 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/single_bulk_create.ts
@@ -6,12 +6,12 @@
import { countBy, isEmpty } from 'lodash';
import { performance } from 'perf_hooks';
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
import { SignalSearchResponse, BulkResponse } from './types';
import { RuleTypeParams } from '../types';
import { generateId } from './utils';
import { buildBulkBody } from './build_bulk_body';
-import { Logger } from '../../../../../../../../src/core/server';
+import { Logger } from '../../../../../../../src/core/server';
interface SingleBulkCreateParams {
someResult: SignalSearchResponse;
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_search_after.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/single_search_after.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_search_after.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/single_search_after.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_search_after.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/single_search_after.ts
similarity index 90%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_search_after.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/single_search_after.ts
index a0e7047ad1cd6..cf224a7c470b8 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/single_search_after.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/single_search_after.ts
@@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AlertServices } from '../../../../../../../plugins/alerting/server';
+import { AlertServices } from '../../../../../../plugins/alerting/server';
import { RuleTypeParams } from '../types';
-import { Logger } from '../../../../../../../../src/core/server';
+import { Logger } from '../../../../../../../src/core/server';
import { SignalSearchResponse } from './types';
import { buildEventsSearchQuery } from './build_events_query';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/types.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/types.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/types.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/types.ts
index 7442545117310..5ed8b88b02628 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/types.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/types.ts
@@ -6,11 +6,7 @@
import { RuleAlertParams, OutputRuleAlertRest } from '../types';
import { SearchResponse } from '../../types';
-import {
- AlertType,
- State,
- AlertExecutorOptions,
-} from '../../../../../../../plugins/alerting/server';
+import { AlertType, State, AlertExecutorOptions } from '../../../../../../plugins/alerting/server';
export interface SignalsParams {
signalIds: string[] | undefined | null;
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/utils.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/utils.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/utils.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/utils.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/utils.ts b/x-pack/plugins/siem/server/lib/detection_engine/signals/utils.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/utils.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/signals/utils.ts
index 016aed9fabcd6..11251ffde2296 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/utils.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/signals/utils.ts
@@ -6,7 +6,7 @@
import { createHash } from 'crypto';
import moment from 'moment';
import dateMath from '@elastic/datemath';
-import { parseDuration } from '../../../../../../../plugins/alerting/server';
+import { parseDuration } from '../../../../../../plugins/alerting/server';
export const generateId = (
docIndex: string,
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/tags/read_tags.test.ts b/x-pack/plugins/siem/server/lib/detection_engine/tags/read_tags.test.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/tags/read_tags.test.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/tags/read_tags.test.ts
index 80c107c991bb7..d29d885f9797a 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/tags/read_tags.test.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/tags/read_tags.test.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { alertsClientMock } from '../../../../../../../plugins/alerting/server/mocks';
+import { alertsClientMock } from '../../../../../alerting/server/mocks';
import { getResult, getFindResultWithMultiHits } from '../routes/__mocks__/request_responses';
import { INTERNAL_RULE_ID_KEY, INTERNAL_IDENTIFIER } from '../../../../common/constants';
import { readRawTags, readTags, convertTagsToSet, convertToTags, isTags } from './read_tags';
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/tags/read_tags.ts b/x-pack/plugins/siem/server/lib/detection_engine/tags/read_tags.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/tags/read_tags.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/tags/read_tags.ts
index d343bca8c97bb..01abf62918085 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/tags/read_tags.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/tags/read_tags.ts
@@ -6,7 +6,7 @@
import { has } from 'lodash/fp';
import { INTERNAL_IDENTIFIER } from '../../../../common/constants';
-import { AlertsClient } from '../../../../../../../plugins/alerting/server';
+import { AlertsClient } from '../../../../../../plugins/alerting/server';
import { findRules } from '../rules/find_rules';
export interface TagType {
diff --git a/x-pack/legacy/plugins/siem/server/lib/detection_engine/types.ts b/x-pack/plugins/siem/server/lib/detection_engine/types.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/detection_engine/types.ts
rename to x-pack/plugins/siem/server/lib/detection_engine/types.ts
index 5e5ff157c92c6..12c05f79fa47a 100644
--- a/x-pack/legacy/plugins/siem/server/lib/detection_engine/types.ts
+++ b/x-pack/plugins/siem/server/lib/detection_engine/types.ts
@@ -4,8 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { CallAPIOptions } from '../../../../../../../src/core/server';
-import { Filter } from '../../../../../../../src/plugins/data/server';
+import { CallAPIOptions } from '../../../../../../src/core/server';
+import { Filter } from '../../../../../../src/plugins/data/server';
import { IRuleStatusAttributes } from './rules/types';
export type PartialFilter = Partial;
diff --git a/x-pack/legacy/plugins/siem/server/lib/ecs_fields/extend_map.test.ts b/x-pack/plugins/siem/server/lib/ecs_fields/extend_map.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ecs_fields/extend_map.test.ts
rename to x-pack/plugins/siem/server/lib/ecs_fields/extend_map.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ecs_fields/extend_map.ts b/x-pack/plugins/siem/server/lib/ecs_fields/extend_map.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ecs_fields/extend_map.ts
rename to x-pack/plugins/siem/server/lib/ecs_fields/extend_map.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ecs_fields/index.ts b/x-pack/plugins/siem/server/lib/ecs_fields/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ecs_fields/index.ts
rename to x-pack/plugins/siem/server/lib/ecs_fields/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/events/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/events/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/events/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/events/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/index.ts b/x-pack/plugins/siem/server/lib/events/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/events/index.ts
rename to x-pack/plugins/siem/server/lib/events/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/mock.ts b/x-pack/plugins/siem/server/lib/events/mock.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/events/mock.ts
rename to x-pack/plugins/siem/server/lib/events/mock.ts
index 3eb841cbad411..f5fb2f481ca77 100644
--- a/x-pack/legacy/plugins/siem/server/lib/events/mock.ts
+++ b/x-pack/plugins/siem/server/lib/events/mock.ts
@@ -5,7 +5,7 @@
*/
import { cloneDeep } from 'lodash/fp';
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { RequestDetailsOptions } from './types';
export const mockResponseSearchTimelineDetails = {
@@ -185,7 +185,7 @@ export const mockResponseSearchTimelineDetails = {
export const mockOptions: RequestDetailsOptions = {
indexName: 'auditbeat-8.0.0-2019.03.29-000003',
eventId: 'TUfUymkBCQofM5eXGBYL',
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
};
export const mockRequest = {
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/query.dsl.ts b/x-pack/plugins/siem/server/lib/events/query.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/events/query.dsl.ts
rename to x-pack/plugins/siem/server/lib/events/query.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/query.last_event_time.dsl.ts b/x-pack/plugins/siem/server/lib/events/query.last_event_time.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/events/query.last_event_time.dsl.ts
rename to x-pack/plugins/siem/server/lib/events/query.last_event_time.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/events/types.ts b/x-pack/plugins/siem/server/lib/events/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/events/types.ts
rename to x-pack/plugins/siem/server/lib/events/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/framework/index.ts b/x-pack/plugins/siem/server/lib/framework/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/framework/index.ts
rename to x-pack/plugins/siem/server/lib/framework/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts b/x-pack/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
similarity index 95%
rename from x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
rename to x-pack/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
index 7d42149223b32..2f0641fc605e8 100644
--- a/x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
+++ b/x-pack/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
@@ -13,9 +13,9 @@ import {
KibanaResponseFactory,
RequestHandlerContext,
KibanaRequest,
-} from '../../../../../../../src/core/server';
-import { IndexPatternsFetcher } from '../../../../../../../src/plugins/data/server';
-import { AuthenticatedUser } from '../../../../../../plugins/security/common/model';
+} from '../../../../../../src/core/server';
+import { IndexPatternsFetcher } from '../../../../../../src/plugins/data/server';
+import { AuthenticatedUser } from '../../../../../plugins/security/common/model';
import { CoreSetup, SetupPlugins } from '../../plugin';
import {
diff --git a/x-pack/legacy/plugins/siem/server/lib/framework/types.ts b/x-pack/plugins/siem/server/lib/framework/types.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/framework/types.ts
rename to x-pack/plugins/siem/server/lib/framework/types.ts
index 7d049d1dcd195..83b4f227cb550 100644
--- a/x-pack/legacy/plugins/siem/server/lib/framework/types.ts
+++ b/x-pack/plugins/siem/server/lib/framework/types.ts
@@ -7,8 +7,8 @@
import { IndicesGetMappingParams } from 'elasticsearch';
import { GraphQLSchema } from 'graphql';
-import { RequestHandlerContext, KibanaRequest } from '../../../../../../../src/core/server';
-import { AuthenticatedUser } from '../../../../../../plugins/security/common/model';
+import { RequestHandlerContext, KibanaRequest } from '../../../../../../src/core/server';
+import { AuthenticatedUser } from '../../../../../plugins/security/common/model';
import { ESQuery } from '../../../common/typed_json';
import {
PaginationInput,
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/hosts/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/hosts/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/hosts/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/hosts/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/helpers.test.ts b/x-pack/plugins/siem/server/lib/hosts/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/helpers.test.ts
rename to x-pack/plugins/siem/server/lib/hosts/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/helpers.ts b/x-pack/plugins/siem/server/lib/hosts/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/helpers.ts
rename to x-pack/plugins/siem/server/lib/hosts/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/index.ts b/x-pack/plugins/siem/server/lib/hosts/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/index.ts
rename to x-pack/plugins/siem/server/lib/hosts/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/mock.ts b/x-pack/plugins/siem/server/lib/hosts/mock.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/mock.ts
rename to x-pack/plugins/siem/server/lib/hosts/mock.ts
index 6b72c4a5a2843..9d64addc647d3 100644
--- a/x-pack/legacy/plugins/siem/server/lib/hosts/mock.ts
+++ b/x-pack/plugins/siem/server/lib/hosts/mock.ts
@@ -5,7 +5,7 @@
*/
import { Direction, HostsFields } from '../../graphql/types';
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import {
HostOverviewRequestOptions,
@@ -14,7 +14,7 @@ import {
} from '.';
export const mockGetHostsOptions: HostsRequestOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
@@ -297,7 +297,7 @@ export const mockGetHostOverviewOptions: HostOverviewRequestOptions = {
},
},
timerange: { interval: '12h', to: 1554824274610, from: 1554737874610 },
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
fields: [
'_id',
'host.architecture',
@@ -501,7 +501,7 @@ export const mockGetHostOverviewResult = {
};
export const mockGetHostLastFirstSeenOptions: HostLastFirstSeenRequestOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/query.detail_host.dsl.ts b/x-pack/plugins/siem/server/lib/hosts/query.detail_host.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/query.detail_host.dsl.ts
rename to x-pack/plugins/siem/server/lib/hosts/query.detail_host.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/query.hosts.dsl.ts b/x-pack/plugins/siem/server/lib/hosts/query.hosts.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/query.hosts.dsl.ts
rename to x-pack/plugins/siem/server/lib/hosts/query.hosts.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/query.last_first_seen_host.dsl.ts b/x-pack/plugins/siem/server/lib/hosts/query.last_first_seen_host.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/query.last_first_seen_host.dsl.ts
rename to x-pack/plugins/siem/server/lib/hosts/query.last_first_seen_host.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/hosts/types.ts b/x-pack/plugins/siem/server/lib/hosts/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/hosts/types.ts
rename to x-pack/plugins/siem/server/lib/hosts/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/index_fields/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/index_fields/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/index_fields/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/index_fields/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/index_fields/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/index_fields/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/index_fields/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/index_fields/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/index_fields/index.ts b/x-pack/plugins/siem/server/lib/index_fields/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/index_fields/index.ts
rename to x-pack/plugins/siem/server/lib/index_fields/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/index_fields/mock.ts b/x-pack/plugins/siem/server/lib/index_fields/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/index_fields/mock.ts
rename to x-pack/plugins/siem/server/lib/index_fields/mock.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/index_fields/types.ts b/x-pack/plugins/siem/server/lib/index_fields/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/index_fields/types.ts
rename to x-pack/plugins/siem/server/lib/index_fields/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/ip_details/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/ip_details/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/ip_details/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/ip_details/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/index.ts b/x-pack/plugins/siem/server/lib/ip_details/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/index.ts
rename to x-pack/plugins/siem/server/lib/ip_details/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/mock.ts b/x-pack/plugins/siem/server/lib/ip_details/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/mock.ts
rename to x-pack/plugins/siem/server/lib/ip_details/mock.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/query_overview.dsl.ts b/x-pack/plugins/siem/server/lib/ip_details/query_overview.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/query_overview.dsl.ts
rename to x-pack/plugins/siem/server/lib/ip_details/query_overview.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/query_users.dsl.ts b/x-pack/plugins/siem/server/lib/ip_details/query_users.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/query_users.dsl.ts
rename to x-pack/plugins/siem/server/lib/ip_details/query_users.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/ip_details/types.ts b/x-pack/plugins/siem/server/lib/ip_details/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/ip_details/types.ts
rename to x-pack/plugins/siem/server/lib/ip_details/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/helpers.test.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/helpers.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/helpers.test.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/helpers.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/helpers.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/helpers.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/index.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/index.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/mock.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/mock.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/mock.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/mock.ts
index b82a540900bd0..3b2a583dc26ae 100644
--- a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/mock.ts
+++ b/x-pack/plugins/siem/server/lib/kpi_hosts/mock.ts
@@ -4,14 +4,14 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { RequestBasicOptions } from '../framework/types';
const FROM = new Date('2019-05-03T13:24:00.660Z').valueOf();
const TO = new Date('2019-05-04T13:24:00.660Z').valueOf();
export const mockKpiHostsOptions: RequestBasicOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
@@ -27,7 +27,7 @@ export const mockKpiHostsOptions: RequestBasicOptions = {
};
export const mockKpiHostDetailsOptions: RequestBasicOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
@@ -290,7 +290,7 @@ export const mockKpiHostsResponse = {
export const mockKpiHostsResponseNodata = { responses: [null, null, null] };
const mockMsearchHeader = {
- index: defaultIndexPattern,
+ index: DEFAULT_INDEX_PATTERN,
allowNoIndices: true,
ignoreUnavailable: true,
};
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.test.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.test.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/query_authentication.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_hosts.dsl.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/query_hosts.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_hosts.dsl.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/query_hosts.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.test.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.test.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/query_unique_ips.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_hosts/types.ts b/x-pack/plugins/siem/server/lib/kpi_hosts/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_hosts/types.ts
rename to x-pack/plugins/siem/server/lib/kpi_hosts/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/elastic_adapter.test.ts b/x-pack/plugins/siem/server/lib/kpi_network/elastic_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/elastic_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/elastic_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/kpi_network/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/helpers.ts b/x-pack/plugins/siem/server/lib/kpi_network/helpers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/helpers.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/helpers.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/index.ts b/x-pack/plugins/siem/server/lib/kpi_network/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/index.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/mock.ts b/x-pack/plugins/siem/server/lib/kpi_network/mock.ts
similarity index 98%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/mock.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/mock.ts
index 7d86769de09f1..cc0849ccdf1d2 100644
--- a/x-pack/legacy/plugins/siem/server/lib/kpi_network/mock.ts
+++ b/x-pack/plugins/siem/server/lib/kpi_network/mock.ts
@@ -4,11 +4,11 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { RequestBasicOptions } from '../framework/types';
export const mockOptions: RequestBasicOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/query_dns.dsl.ts b/x-pack/plugins/siem/server/lib/kpi_network/query_dns.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/query_dns.dsl.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/query_dns.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/query_network_events.ts b/x-pack/plugins/siem/server/lib/kpi_network/query_network_events.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/query_network_events.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/query_network_events.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/query_tls_handshakes.dsl.ts b/x-pack/plugins/siem/server/lib/kpi_network/query_tls_handshakes.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/query_tls_handshakes.dsl.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/query_tls_handshakes.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/query_unique_flow.ts b/x-pack/plugins/siem/server/lib/kpi_network/query_unique_flow.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/query_unique_flow.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/query_unique_flow.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/query_unique_private_ips.dsl.ts b/x-pack/plugins/siem/server/lib/kpi_network/query_unique_private_ips.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/query_unique_private_ips.dsl.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/query_unique_private_ips.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/kpi_network/types.ts b/x-pack/plugins/siem/server/lib/kpi_network/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/kpi_network/types.ts
rename to x-pack/plugins/siem/server/lib/kpi_network/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/elasticseatch_adapter.test.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/elasticseatch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/elasticseatch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/elasticseatch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/index.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/index.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/mock.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/mock.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/mock.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/mock.ts
index 3e51e926bea87..1d1ebfff936d2 100644
--- a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/mock.ts
+++ b/x-pack/plugins/siem/server/lib/matrix_histogram/mock.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { HistogramType } from '../../graphql/types';
export const mockAlertsHistogramDataResponse = {
@@ -111,7 +111,7 @@ export const mockOptions = {
to: 9999,
from: 1234,
},
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
filterQuery: '',
stackByField: 'event.module',
histogramType: HistogramType.alerts,
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query.anomalies_over_time.dsl.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/query.anomalies_over_time.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query.anomalies_over_time.dsl.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/query.anomalies_over_time.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query.authentications_over_time.dsl.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/query.authentications_over_time.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query.authentications_over_time.dsl.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/query.authentications_over_time.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query.events_over_time.dsl.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/query.events_over_time.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query.events_over_time.dsl.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/query.events_over_time.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query_alerts.dsl.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/query_alerts.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query_alerts.dsl.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/query_alerts.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query_dns_histogram.dsl.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/query_dns_histogram.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/query_dns_histogram.dsl.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/query_dns_histogram.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/types.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/types.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/matrix_histogram/utils.ts b/x-pack/plugins/siem/server/lib/matrix_histogram/utils.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/matrix_histogram/utils.ts
rename to x-pack/plugins/siem/server/lib/matrix_histogram/utils.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/__snapshots__/elastic_adapter.test.ts.snap b/x-pack/plugins/siem/server/lib/network/__snapshots__/elastic_adapter.test.ts.snap
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/__snapshots__/elastic_adapter.test.ts.snap
rename to x-pack/plugins/siem/server/lib/network/__snapshots__/elastic_adapter.test.ts.snap
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/elastic_adapter.test.ts b/x-pack/plugins/siem/server/lib/network/elastic_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/elastic_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/network/elastic_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/network/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/network/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/index.ts b/x-pack/plugins/siem/server/lib/network/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/index.ts
rename to x-pack/plugins/siem/server/lib/network/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/mock.ts b/x-pack/plugins/siem/server/lib/network/mock.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/network/mock.ts
rename to x-pack/plugins/siem/server/lib/network/mock.ts
index 7ea692f27ef04..38e82a4f19dca 100644
--- a/x-pack/legacy/plugins/siem/server/lib/network/mock.ts
+++ b/x-pack/plugins/siem/server/lib/network/mock.ts
@@ -4,13 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { Direction, FlowTargetSourceDest, NetworkTopTablesFields } from '../../graphql/types';
import { NetworkTopNFlowRequestOptions } from '.';
export const mockOptions: NetworkTopNFlowRequestOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/query_dns.dsl.ts b/x-pack/plugins/siem/server/lib/network/query_dns.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/query_dns.dsl.ts
rename to x-pack/plugins/siem/server/lib/network/query_dns.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/query_http.dsl.ts b/x-pack/plugins/siem/server/lib/network/query_http.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/query_http.dsl.ts
rename to x-pack/plugins/siem/server/lib/network/query_http.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/query_top_countries.dsl.ts b/x-pack/plugins/siem/server/lib/network/query_top_countries.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/query_top_countries.dsl.ts
rename to x-pack/plugins/siem/server/lib/network/query_top_countries.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/query_top_n_flow.dsl.ts b/x-pack/plugins/siem/server/lib/network/query_top_n_flow.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/query_top_n_flow.dsl.ts
rename to x-pack/plugins/siem/server/lib/network/query_top_n_flow.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/network/types.ts b/x-pack/plugins/siem/server/lib/network/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/network/types.ts
rename to x-pack/plugins/siem/server/lib/network/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/note/saved_object.ts b/x-pack/plugins/siem/server/lib/note/saved_object.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/note/saved_object.ts
rename to x-pack/plugins/siem/server/lib/note/saved_object.ts
index d825aae1b480b..8164aa9365f71 100644
--- a/x-pack/legacy/plugins/siem/server/lib/note/saved_object.ts
+++ b/x-pack/plugins/siem/server/lib/note/saved_object.ts
@@ -12,8 +12,8 @@ import { pipe } from 'fp-ts/lib/pipeable';
import { map, fold } from 'fp-ts/lib/Either';
import { identity } from 'fp-ts/lib/function';
-import { SavedObjectsFindOptions } from '../../../../../../../src/core/server';
-import { AuthenticatedUser } from '../../../../../../plugins/security/common/model';
+import { SavedObjectsFindOptions } from '../../../../../../src/core/server';
+import { AuthenticatedUser } from '../../../../../plugins/security/common/model';
import { UNAUTHENTICATED_USER } from '../../../common/constants';
import {
PageInfoNote,
@@ -25,9 +25,9 @@ import {
import { FrameworkRequest } from '../framework';
import { SavedNote, NoteSavedObjectRuntimeType, NoteSavedObject } from './types';
import { noteSavedObjectType } from './saved_object_mappings';
-import { timelineSavedObjectType } from '../../saved_objects';
import { pickSavedTimeline } from '../timeline/pick_saved_timeline';
import { convertSavedObjectToSavedTimeline } from '../timeline/convert_saved_object_to_savedtimeline';
+import { timelineSavedObjectType } from '../timeline/saved_object_mappings';
export class Note {
public async deleteNote(request: FrameworkRequest, noteIds: string[]) {
diff --git a/x-pack/plugins/siem/server/lib/note/saved_object_mappings.ts b/x-pack/plugins/siem/server/lib/note/saved_object_mappings.ts
new file mode 100644
index 0000000000000..47f0fbbb3bb83
--- /dev/null
+++ b/x-pack/plugins/siem/server/lib/note/saved_object_mappings.ts
@@ -0,0 +1,33 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+export const noteSavedObjectType = 'siem-ui-timeline-note';
+
+export const noteSavedObjectMappings = {
+ properties: {
+ timelineId: {
+ type: 'keyword',
+ },
+ eventId: {
+ type: 'keyword',
+ },
+ note: {
+ type: 'text',
+ },
+ created: {
+ type: 'date',
+ },
+ createdBy: {
+ type: 'text',
+ },
+ updated: {
+ type: 'date',
+ },
+ updatedBy: {
+ type: 'text',
+ },
+ },
+};
diff --git a/x-pack/legacy/plugins/siem/server/lib/note/types.ts b/x-pack/plugins/siem/server/lib/note/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/note/types.ts
rename to x-pack/plugins/siem/server/lib/note/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/overview/elastic_adapter.test.ts b/x-pack/plugins/siem/server/lib/overview/elastic_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/overview/elastic_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/overview/elastic_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/overview/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/overview/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/overview/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/overview/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/overview/index.ts b/x-pack/plugins/siem/server/lib/overview/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/overview/index.ts
rename to x-pack/plugins/siem/server/lib/overview/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/overview/mock.ts b/x-pack/plugins/siem/server/lib/overview/mock.ts
similarity index 97%
rename from x-pack/legacy/plugins/siem/server/lib/overview/mock.ts
rename to x-pack/plugins/siem/server/lib/overview/mock.ts
index 410b4d90b1e78..51d8a258569a8 100644
--- a/x-pack/legacy/plugins/siem/server/lib/overview/mock.ts
+++ b/x-pack/plugins/siem/server/lib/overview/mock.ts
@@ -4,11 +4,11 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { RequestBasicOptions } from '../framework/types';
export const mockOptionsNetwork: RequestBasicOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
@@ -79,7 +79,7 @@ export const mockResultNetwork = {
};
export const mockOptionsHost: RequestBasicOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
container: 'docker.container.name',
diff --git a/x-pack/legacy/plugins/siem/server/lib/overview/query.dsl.ts b/x-pack/plugins/siem/server/lib/overview/query.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/overview/query.dsl.ts
rename to x-pack/plugins/siem/server/lib/overview/query.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/overview/types.ts b/x-pack/plugins/siem/server/lib/overview/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/overview/types.ts
rename to x-pack/plugins/siem/server/lib/overview/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/pinned_event/saved_object.ts b/x-pack/plugins/siem/server/lib/pinned_event/saved_object.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/pinned_event/saved_object.ts
rename to x-pack/plugins/siem/server/lib/pinned_event/saved_object.ts
index afa3595a09e1c..d0237f1b4297c 100644
--- a/x-pack/legacy/plugins/siem/server/lib/pinned_event/saved_object.ts
+++ b/x-pack/plugins/siem/server/lib/pinned_event/saved_object.ts
@@ -10,8 +10,8 @@ import { pipe } from 'fp-ts/lib/pipeable';
import { map, fold } from 'fp-ts/lib/Either';
import { identity } from 'fp-ts/lib/function';
-import { SavedObjectsFindOptions } from '../../../../../../../src/core/server';
-import { AuthenticatedUser } from '../../../../../../plugins/security/common/model';
+import { SavedObjectsFindOptions } from '../../../../../../src/core/server';
+import { AuthenticatedUser } from '../../../../../plugins/security/common/model';
import { UNAUTHENTICATED_USER } from '../../../common/constants';
import { FrameworkRequest } from '../framework';
import {
@@ -20,9 +20,10 @@ import {
SavedPinnedEvent,
} from './types';
import { PageInfoNote, SortNote, PinnedEvent as PinnedEventResponse } from '../../graphql/types';
-import { pinnedEventSavedObjectType, timelineSavedObjectType } from '../../saved_objects';
import { pickSavedTimeline } from '../timeline/pick_saved_timeline';
import { convertSavedObjectToSavedTimeline } from '../timeline/convert_saved_object_to_savedtimeline';
+import { pinnedEventSavedObjectType } from './saved_object_mappings';
+import { timelineSavedObjectType } from '../timeline/saved_object_mappings';
export class PinnedEvent {
public async deletePinnedEventOnTimeline(request: FrameworkRequest, pinnedEventIds: string[]) {
diff --git a/x-pack/plugins/siem/server/lib/pinned_event/saved_object_mappings.ts b/x-pack/plugins/siem/server/lib/pinned_event/saved_object_mappings.ts
new file mode 100644
index 0000000000000..e865152026ed6
--- /dev/null
+++ b/x-pack/plugins/siem/server/lib/pinned_event/saved_object_mappings.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+export const pinnedEventSavedObjectType = 'siem-ui-timeline-pinned-event';
+
+export const pinnedEventSavedObjectMappings = {
+ properties: {
+ timelineId: {
+ type: 'keyword',
+ },
+ eventId: {
+ type: 'keyword',
+ },
+ created: {
+ type: 'date',
+ },
+ createdBy: {
+ type: 'text',
+ },
+ updated: {
+ type: 'date',
+ },
+ updatedBy: {
+ type: 'text',
+ },
+ },
+};
diff --git a/x-pack/legacy/plugins/siem/server/lib/pinned_event/types.ts b/x-pack/plugins/siem/server/lib/pinned_event/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/pinned_event/types.ts
rename to x-pack/plugins/siem/server/lib/pinned_event/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/source_status/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/source_status/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/source_status/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/source_status/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/source_status/index.ts b/x-pack/plugins/siem/server/lib/source_status/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/source_status/index.ts
rename to x-pack/plugins/siem/server/lib/source_status/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/source_status/query.dsl.ts b/x-pack/plugins/siem/server/lib/source_status/query.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/source_status/query.dsl.ts
rename to x-pack/plugins/siem/server/lib/source_status/query.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/source_status/types.ts b/x-pack/plugins/siem/server/lib/source_status/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/source_status/types.ts
rename to x-pack/plugins/siem/server/lib/source_status/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/sources/configuration.test.ts b/x-pack/plugins/siem/server/lib/sources/configuration.test.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/lib/sources/configuration.test.ts
rename to x-pack/plugins/siem/server/lib/sources/configuration.test.ts
index b1b149d17a9f5..142edf81d9938 100644
--- a/x-pack/legacy/plugins/siem/server/lib/sources/configuration.test.ts
+++ b/x-pack/plugins/siem/server/lib/sources/configuration.test.ts
@@ -5,7 +5,7 @@
*/
import { InmemoryConfigurationAdapter } from '../configuration/inmemory_configuration_adapter';
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { ConfigurationSourcesAdapter } from './configuration';
import { PartialSourceConfiguration } from './types';
@@ -76,7 +76,7 @@ describe('the ConfigurationSourcesAdapter', () => {
new InmemoryConfigurationAdapter({
sources: {
sourceOne: {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
fields: {
container: 'DIFFERENT_CONTAINER_FIELD',
},
diff --git a/x-pack/legacy/plugins/siem/server/lib/sources/configuration.ts b/x-pack/plugins/siem/server/lib/sources/configuration.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/sources/configuration.ts
rename to x-pack/plugins/siem/server/lib/sources/configuration.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/sources/index.ts b/x-pack/plugins/siem/server/lib/sources/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/sources/index.ts
rename to x-pack/plugins/siem/server/lib/sources/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/sources/types.ts b/x-pack/plugins/siem/server/lib/sources/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/sources/types.ts
rename to x-pack/plugins/siem/server/lib/sources/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/timeline/convert_saved_object_to_savedtimeline.ts b/x-pack/plugins/siem/server/lib/timeline/convert_saved_object_to_savedtimeline.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/timeline/convert_saved_object_to_savedtimeline.ts
rename to x-pack/plugins/siem/server/lib/timeline/convert_saved_object_to_savedtimeline.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/timeline/pick_saved_timeline.ts b/x-pack/plugins/siem/server/lib/timeline/pick_saved_timeline.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/server/lib/timeline/pick_saved_timeline.ts
rename to x-pack/plugins/siem/server/lib/timeline/pick_saved_timeline.ts
index 5b60086ae81b6..3d7782d81764f 100644
--- a/x-pack/legacy/plugins/siem/server/lib/timeline/pick_saved_timeline.ts
+++ b/x-pack/plugins/siem/server/lib/timeline/pick_saved_timeline.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AuthenticatedUser } from '../../../../../../plugins/security/common/model';
+import { AuthenticatedUser } from '../../../../../plugins/security/common/model';
import { UNAUTHENTICATED_USER } from '../../../common/constants';
import { SavedTimeline } from './types';
diff --git a/x-pack/legacy/plugins/siem/server/lib/timeline/saved_object.test.ts b/x-pack/plugins/siem/server/lib/timeline/saved_object.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/timeline/saved_object.test.ts
rename to x-pack/plugins/siem/server/lib/timeline/saved_object.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/timeline/saved_object.ts b/x-pack/plugins/siem/server/lib/timeline/saved_object.ts
similarity index 99%
rename from x-pack/legacy/plugins/siem/server/lib/timeline/saved_object.ts
rename to x-pack/plugins/siem/server/lib/timeline/saved_object.ts
index 4b78a7bd3d06d..5c0865bfdd233 100644
--- a/x-pack/legacy/plugins/siem/server/lib/timeline/saved_object.ts
+++ b/x-pack/plugins/siem/server/lib/timeline/saved_object.ts
@@ -6,7 +6,7 @@
import { getOr } from 'lodash/fp';
-import { SavedObjectsFindOptions } from '../../../../../../../src/core/server';
+import { SavedObjectsFindOptions } from '../../../../../../src/core/server';
import { UNAUTHENTICATED_USER } from '../../../common/constants';
import {
ResponseTimeline,
diff --git a/x-pack/plugins/siem/server/lib/timeline/saved_object_mappings.ts b/x-pack/plugins/siem/server/lib/timeline/saved_object_mappings.ts
new file mode 100644
index 0000000000000..f7e7a4a43e863
--- /dev/null
+++ b/x-pack/plugins/siem/server/lib/timeline/saved_object_mappings.ts
@@ -0,0 +1,268 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+export const timelineSavedObjectType = 'siem-ui-timeline';
+
+export const timelineSavedObjectMappings = {
+ properties: {
+ columns: {
+ properties: {
+ aggregatable: {
+ type: 'boolean',
+ },
+ category: {
+ type: 'keyword',
+ },
+ columnHeaderType: {
+ type: 'keyword',
+ },
+ description: {
+ type: 'text',
+ },
+ example: {
+ type: 'text',
+ },
+ indexes: {
+ type: 'keyword',
+ },
+ id: {
+ type: 'keyword',
+ },
+ name: {
+ type: 'text',
+ },
+ placeholder: {
+ type: 'text',
+ },
+ searchable: {
+ type: 'boolean',
+ },
+ type: {
+ type: 'keyword',
+ },
+ },
+ },
+ dataProviders: {
+ properties: {
+ id: {
+ type: 'keyword',
+ },
+ name: {
+ type: 'text',
+ },
+ enabled: {
+ type: 'boolean',
+ },
+ excluded: {
+ type: 'boolean',
+ },
+ kqlQuery: {
+ type: 'text',
+ },
+ queryMatch: {
+ properties: {
+ field: {
+ type: 'text',
+ },
+ displayField: {
+ type: 'text',
+ },
+ value: {
+ type: 'text',
+ },
+ displayValue: {
+ type: 'text',
+ },
+ operator: {
+ type: 'text',
+ },
+ },
+ },
+ and: {
+ properties: {
+ id: {
+ type: 'keyword',
+ },
+ name: {
+ type: 'text',
+ },
+ enabled: {
+ type: 'boolean',
+ },
+ excluded: {
+ type: 'boolean',
+ },
+ kqlQuery: {
+ type: 'text',
+ },
+ queryMatch: {
+ properties: {
+ field: {
+ type: 'text',
+ },
+ displayField: {
+ type: 'text',
+ },
+ value: {
+ type: 'text',
+ },
+ displayValue: {
+ type: 'text',
+ },
+ operator: {
+ type: 'text',
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ description: {
+ type: 'text',
+ },
+ eventType: {
+ type: 'keyword',
+ },
+ favorite: {
+ properties: {
+ keySearch: {
+ type: 'text',
+ },
+ fullName: {
+ type: 'text',
+ },
+ userName: {
+ type: 'text',
+ },
+ favoriteDate: {
+ type: 'date',
+ },
+ },
+ },
+ filters: {
+ properties: {
+ meta: {
+ properties: {
+ alias: {
+ type: 'text',
+ },
+ controlledBy: {
+ type: 'text',
+ },
+ disabled: {
+ type: 'boolean',
+ },
+ field: {
+ type: 'text',
+ },
+ formattedValue: {
+ type: 'text',
+ },
+ index: {
+ type: 'keyword',
+ },
+ key: {
+ type: 'keyword',
+ },
+ negate: {
+ type: 'boolean',
+ },
+ params: {
+ type: 'text',
+ },
+ type: {
+ type: 'keyword',
+ },
+ value: {
+ type: 'text',
+ },
+ },
+ },
+ exists: {
+ type: 'text',
+ },
+ match_all: {
+ type: 'text',
+ },
+ missing: {
+ type: 'text',
+ },
+ query: {
+ type: 'text',
+ },
+ range: {
+ type: 'text',
+ },
+ script: {
+ type: 'text',
+ },
+ },
+ },
+ kqlMode: {
+ type: 'keyword',
+ },
+ kqlQuery: {
+ properties: {
+ filterQuery: {
+ properties: {
+ kuery: {
+ properties: {
+ kind: {
+ type: 'keyword',
+ },
+ expression: {
+ type: 'text',
+ },
+ },
+ },
+ serializedQuery: {
+ type: 'text',
+ },
+ },
+ },
+ },
+ },
+ title: {
+ type: 'text',
+ },
+ dateRange: {
+ properties: {
+ start: {
+ type: 'date',
+ },
+ end: {
+ type: 'date',
+ },
+ },
+ },
+ savedQueryId: {
+ type: 'keyword',
+ },
+ sort: {
+ properties: {
+ columnId: {
+ type: 'keyword',
+ },
+ sortDirection: {
+ type: 'keyword',
+ },
+ },
+ },
+ created: {
+ type: 'date',
+ },
+ createdBy: {
+ type: 'text',
+ },
+ updated: {
+ type: 'date',
+ },
+ updatedBy: {
+ type: 'text',
+ },
+ },
+};
diff --git a/x-pack/legacy/plugins/siem/server/lib/timeline/types.ts b/x-pack/plugins/siem/server/lib/timeline/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/timeline/types.ts
rename to x-pack/plugins/siem/server/lib/timeline/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/tls/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/tls/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/tls/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/tls/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/tls/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/tls/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/tls/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/tls/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/tls/index.ts b/x-pack/plugins/siem/server/lib/tls/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/tls/index.ts
rename to x-pack/plugins/siem/server/lib/tls/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/tls/mock.ts b/x-pack/plugins/siem/server/lib/tls/mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/tls/mock.ts
rename to x-pack/plugins/siem/server/lib/tls/mock.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/tls/query_tls.dsl.ts b/x-pack/plugins/siem/server/lib/tls/query_tls.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/tls/query_tls.dsl.ts
rename to x-pack/plugins/siem/server/lib/tls/query_tls.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/tls/types.ts b/x-pack/plugins/siem/server/lib/tls/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/tls/types.ts
rename to x-pack/plugins/siem/server/lib/tls/types.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/types.ts b/x-pack/plugins/siem/server/lib/types.ts
similarity index 94%
rename from x-pack/legacy/plugins/siem/server/lib/types.ts
rename to x-pack/plugins/siem/server/lib/types.ts
index 323ced734d24b..18f46886dfbf9 100644
--- a/x-pack/legacy/plugins/siem/server/lib/types.ts
+++ b/x-pack/plugins/siem/server/lib/types.ts
@@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { AuthenticatedUser } from '../../../../../plugins/security/public';
-import { RequestHandlerContext } from '../../../../../../src/core/server';
-export { ConfigType as Configuration } from '../../../../../plugins/siem/server';
+import { AuthenticatedUser } from '../../../../plugins/security/public';
+import { RequestHandlerContext } from '../../../../../src/core/server';
+export { ConfigType as Configuration } from '../../../../plugins/siem/server';
import { Authentications } from './authentications';
import { Events } from './events';
diff --git a/x-pack/legacy/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.test.ts b/x-pack/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.test.ts
rename to x-pack/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.ts b/x-pack/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.ts
rename to x-pack/plugins/siem/server/lib/uncommon_processes/elasticsearch_adapter.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/uncommon_processes/index.ts b/x-pack/plugins/siem/server/lib/uncommon_processes/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/uncommon_processes/index.ts
rename to x-pack/plugins/siem/server/lib/uncommon_processes/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/uncommon_processes/query.dsl.ts b/x-pack/plugins/siem/server/lib/uncommon_processes/query.dsl.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/uncommon_processes/query.dsl.ts
rename to x-pack/plugins/siem/server/lib/uncommon_processes/query.dsl.ts
diff --git a/x-pack/legacy/plugins/siem/server/lib/uncommon_processes/types.ts b/x-pack/plugins/siem/server/lib/uncommon_processes/types.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/lib/uncommon_processes/types.ts
rename to x-pack/plugins/siem/server/lib/uncommon_processes/types.ts
diff --git a/x-pack/plugins/siem/server/plugin.ts b/x-pack/plugins/siem/server/plugin.ts
index ccc6aef1452b2..3ba10020b2eae 100644
--- a/x-pack/plugins/siem/server/plugin.ts
+++ b/x-pack/plugins/siem/server/plugin.ts
@@ -5,29 +5,166 @@
*/
import { Observable } from 'rxjs';
+import { first } from 'rxjs/operators';
+import { i18n } from '@kbn/i18n';
-import { CoreSetup, PluginInitializerContext, Logger } from '../../../../src/core/server';
+import {
+ PluginStartContract as AlertingStart,
+ PluginSetupContract as AlertingSetup,
+} from '../../alerting/server';
+import {
+ CoreSetup,
+ CoreStart,
+ PluginInitializerContext,
+ Logger,
+} from '../../../../src/core/server';
+import { SecurityPluginSetup as SecuritySetup } from '../../security/server';
+import { PluginSetupContract as FeaturesSetup } from '../../features/server';
+import { EncryptedSavedObjectsPluginSetup as EncryptedSavedObjectsSetup } from '../../encrypted_saved_objects/server';
+import { SpacesPluginSetup as SpacesSetup } from '../../spaces/server';
+import { PluginStartContract as ActionsStart } from '../../actions/server';
+import { initServer } from './init_server';
+import { compose } from './lib/compose/kibana';
+import { initRoutes } from './routes';
+import { isAlertExecutor } from './lib/detection_engine/signals/types';
+import { signalRulesAlertType } from './lib/detection_engine/signals/signal_rule_alert_type';
+import {
+ noteSavedObjectType,
+ pinnedEventSavedObjectType,
+ timelineSavedObjectType,
+ ruleStatusSavedObjectType,
+ initSavedObjects,
+} from './saved_objects';
import { createConfig$, ConfigType } from './config';
+import { SiemClientFactory } from './client';
+import { initUiSettings } from './ui_settings';
+
+export { CoreSetup, CoreStart };
+
+export interface SetupPlugins {
+ encryptedSavedObjects: EncryptedSavedObjectsSetup;
+ features: FeaturesSetup;
+ security: SecuritySetup;
+ spaces?: SpacesSetup;
+ alerting: AlertingSetup;
+}
+
+export interface StartPlugins {
+ actions: ActionsStart;
+ alerting: AlertingStart;
+}
export class Plugin {
readonly name = 'siem';
private readonly logger: Logger;
- // @ts-ignore-next-line TODO(rylnd): use it or lose it
private readonly config$: Observable;
+ private readonly context: PluginInitializerContext;
+ private readonly siemClientFactory: SiemClientFactory;
constructor(context: PluginInitializerContext) {
- const { logger } = context;
- this.logger = logger.get();
- this.logger.debug('plugin initialized');
-
+ this.context = context;
+ this.logger = context.logger.get('plugins', this.name);
+ this.siemClientFactory = new SiemClientFactory();
this.config$ = createConfig$(context);
+
+ this.logger.debug('plugin initialized');
}
- public setup(core: CoreSetup, plugins: {}) {
+ public async setup(core: CoreSetup, plugins: SetupPlugins) {
this.logger.debug('plugin setup');
+
+ initUiSettings(core.uiSettings);
+ initSavedObjects(core.savedObjects);
+
+ const router = core.http.createRouter();
+ core.http.registerRouteHandlerContext(this.name, (context, request, response) => ({
+ getSiemClient: () => this.siemClientFactory.create(request),
+ }));
+
+ const config = await this.config$.pipe(first()).toPromise();
+
+ this.siemClientFactory.setup({
+ getSpaceId: plugins.spaces?.spacesService?.getSpaceId,
+ config,
+ });
+
+ initRoutes(router, config, plugins.encryptedSavedObjects?.usingEphemeralEncryptionKey ?? false);
+
+ plugins.features.registerFeature({
+ id: this.name,
+ name: i18n.translate('xpack.siem.featureRegistry.linkSiemTitle', {
+ defaultMessage: 'SIEM',
+ }),
+ icon: 'securityAnalyticsApp',
+ navLinkId: 'siem',
+ app: ['siem', 'kibana'],
+ catalogue: ['siem'],
+ privileges: {
+ all: {
+ api: ['siem', 'actions-read', 'actions-all', 'alerting-read', 'alerting-all'],
+ savedObject: {
+ all: [
+ 'alert',
+ 'action',
+ 'action_task_params',
+ noteSavedObjectType,
+ pinnedEventSavedObjectType,
+ timelineSavedObjectType,
+ ruleStatusSavedObjectType,
+ ],
+ read: ['config'],
+ },
+ ui: [
+ 'show',
+ 'crud',
+ 'alerting:show',
+ 'actions:show',
+ 'alerting:save',
+ 'actions:save',
+ 'alerting:delete',
+ 'actions:delete',
+ ],
+ },
+ read: {
+ api: ['siem', 'actions-read', 'actions-all', 'alerting-read', 'alerting-all'],
+ savedObject: {
+ all: ['alert', 'action', 'action_task_params'],
+ read: [
+ 'config',
+ noteSavedObjectType,
+ pinnedEventSavedObjectType,
+ timelineSavedObjectType,
+ ruleStatusSavedObjectType,
+ ],
+ },
+ ui: [
+ 'show',
+ 'alerting:show',
+ 'actions:show',
+ 'alerting:save',
+ 'actions:save',
+ 'alerting:delete',
+ 'actions:delete',
+ ],
+ },
+ },
+ });
+
+ if (plugins.alerting != null) {
+ const type = signalRulesAlertType({
+ logger: this.logger,
+ version: this.context.env.packageInfo.version,
+ });
+ if (isAlertExecutor(type)) {
+ plugins.alerting.registerType(type);
+ }
+ }
+
+ const libs = compose(core, plugins, this.context.env.mode.prod);
+ initServer(libs);
}
- public start() {
+ public start(core: CoreStart, plugins: StartPlugins) {
this.logger.debug('plugin started');
}
diff --git a/x-pack/legacy/plugins/siem/server/routes/index.ts b/x-pack/plugins/siem/server/routes/index.ts
similarity index 96%
rename from x-pack/legacy/plugins/siem/server/routes/index.ts
rename to x-pack/plugins/siem/server/routes/index.ts
index 08bdfc3aa5d4f..bf8666bfd5567 100644
--- a/x-pack/legacy/plugins/siem/server/routes/index.ts
+++ b/x-pack/plugins/siem/server/routes/index.ts
@@ -4,8 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { IRouter } from '../../../../../../src/core/server';
-import { LegacyServices } from '../types';
+import { IRouter } from '../../../../../src/core/server';
import { createRulesRoute } from '../lib/detection_engine/routes/rules/create_rules_route';
import { createIndexRoute } from '../lib/detection_engine/routes/index/create_index_route';
@@ -29,10 +28,11 @@ import { importRulesRoute } from '../lib/detection_engine/routes/rules/import_ru
import { exportRulesRoute } from '../lib/detection_engine/routes/rules/export_rules_route';
import { findRulesStatusesRoute } from '../lib/detection_engine/routes/rules/find_rules_status_route';
import { getPrepackagedRulesStatusRoute } from '../lib/detection_engine/routes/rules/get_prepackaged_rules_status_route';
+import { ConfigType } from '..';
export const initRoutes = (
router: IRouter,
- config: LegacyServices['config'],
+ config: ConfigType,
usingEphemeralEncryptionKey: boolean
) => {
// Detection Engine Rule routes that have the REST endpoints of /api/detection_engine/rules
diff --git a/x-pack/plugins/siem/server/saved_objects.ts b/x-pack/plugins/siem/server/saved_objects.ts
new file mode 100644
index 0000000000000..9a37f5511e805
--- /dev/null
+++ b/x-pack/plugins/siem/server/saved_objects.ts
@@ -0,0 +1,77 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+import { CoreSetup } from '../../../../src/core/server';
+import { noteSavedObjectType, noteSavedObjectMappings } from './lib/note/saved_object_mappings';
+import {
+ pinnedEventSavedObjectType,
+ pinnedEventSavedObjectMappings,
+} from './lib/pinned_event/saved_object_mappings';
+import {
+ timelineSavedObjectType,
+ timelineSavedObjectMappings,
+} from './lib/timeline/saved_object_mappings';
+import {
+ ruleStatusSavedObjectType,
+ ruleStatusSavedObjectMappings,
+} from './lib/detection_engine/rules/saved_object_mappings';
+import {
+ caseSavedObjectType,
+ caseSavedObjectMappings,
+ caseCommentSavedObjectType,
+ caseCommentSavedObjectMappings,
+} from './lib/case/saved_object_mappings';
+
+export {
+ noteSavedObjectType,
+ pinnedEventSavedObjectType,
+ ruleStatusSavedObjectType,
+ timelineSavedObjectType,
+};
+
+export const initSavedObjects = (savedObjects: CoreSetup['savedObjects']) => {
+ savedObjects.registerType({
+ name: pinnedEventSavedObjectType,
+ hidden: false,
+ namespaceAgnostic: false,
+ mappings: pinnedEventSavedObjectMappings,
+ });
+
+ savedObjects.registerType({
+ name: noteSavedObjectType,
+ hidden: false,
+ namespaceAgnostic: false,
+ mappings: noteSavedObjectMappings,
+ });
+
+ savedObjects.registerType({
+ name: ruleStatusSavedObjectType,
+ hidden: false,
+ namespaceAgnostic: false,
+ mappings: ruleStatusSavedObjectMappings,
+ });
+
+ savedObjects.registerType({
+ name: timelineSavedObjectType,
+ hidden: false,
+ namespaceAgnostic: false,
+ mappings: timelineSavedObjectMappings,
+ });
+
+ savedObjects.registerType({
+ name: caseSavedObjectType,
+ hidden: false,
+ namespaceAgnostic: false,
+ mappings: caseSavedObjectMappings,
+ });
+
+ savedObjects.registerType({
+ name: caseCommentSavedObjectType,
+ hidden: false,
+ namespaceAgnostic: false,
+ mappings: caseCommentSavedObjectMappings,
+ });
+};
diff --git a/x-pack/legacy/plugins/siem/server/types.ts b/x-pack/plugins/siem/server/types.ts
similarity index 65%
rename from x-pack/legacy/plugins/siem/server/types.ts
rename to x-pack/plugins/siem/server/types.ts
index 4119645a5af47..0398b677a5980 100644
--- a/x-pack/legacy/plugins/siem/server/types.ts
+++ b/x-pack/plugins/siem/server/types.ts
@@ -4,17 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { Legacy } from 'kibana';
import { SiemClient } from './client';
-export { LegacyRequest } from '../../../../../src/core/server';
-
-export interface LegacyServices {
- alerting?: Legacy.Server['plugins']['alerting'];
- config: Legacy.Server['config'];
- route: Legacy.Server['route'];
-}
-
export { SiemClient };
export interface SiemRequestContext {
diff --git a/x-pack/plugins/siem/server/ui_settings.ts b/x-pack/plugins/siem/server/ui_settings.ts
new file mode 100644
index 0000000000000..925cb4c513c3e
--- /dev/null
+++ b/x-pack/plugins/siem/server/ui_settings.ts
@@ -0,0 +1,122 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+import { i18n } from '@kbn/i18n';
+import { CoreSetup } from '../../../../src/core/server';
+
+import {
+ DEFAULT_INDEX_KEY,
+ DEFAULT_INDEX_PATTERN,
+ DEFAULT_ANOMALY_SCORE,
+ DEFAULT_SIEM_TIME_RANGE,
+ DEFAULT_SIEM_REFRESH_INTERVAL,
+ DEFAULT_INTERVAL_PAUSE,
+ DEFAULT_INTERVAL_VALUE,
+ DEFAULT_FROM,
+ DEFAULT_TO,
+ ENABLE_NEWS_FEED_SETTING,
+ NEWS_FEED_URL_SETTING,
+ NEWS_FEED_URL_SETTING_DEFAULT,
+ IP_REPUTATION_LINKS_SETTING,
+ IP_REPUTATION_LINKS_SETTING_DEFAULT,
+} from '../common/constants';
+
+export const initUiSettings = (uiSettings: CoreSetup['uiSettings']) => {
+ uiSettings.register({
+ [DEFAULT_SIEM_REFRESH_INTERVAL]: {
+ type: 'json',
+ name: i18n.translate('xpack.siem.uiSettings.defaultRefreshIntervalLabel', {
+ defaultMessage: 'Time filter refresh interval',
+ }),
+ value: `{
+ "pause": ${DEFAULT_INTERVAL_PAUSE},
+ "value": ${DEFAULT_INTERVAL_VALUE}
+}`,
+ description: i18n.translate('xpack.siem.uiSettings.defaultRefreshIntervalDescription', {
+ defaultMessage:
+ 'Default refresh interval for the SIEM time filter, in milliseconds.
',
+ }),
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ [DEFAULT_SIEM_TIME_RANGE]: {
+ type: 'json',
+ name: i18n.translate('xpack.siem.uiSettings.defaultTimeRangeLabel', {
+ defaultMessage: 'Time filter period',
+ }),
+ value: `{
+ "from": "${DEFAULT_FROM}",
+ "to": "${DEFAULT_TO}"
+}`,
+ description: i18n.translate('xpack.siem.uiSettings.defaultTimeRangeDescription', {
+ defaultMessage: 'Default period of time in the SIEM time filter.
',
+ }),
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ [DEFAULT_INDEX_KEY]: {
+ name: i18n.translate('xpack.siem.uiSettings.defaultIndexLabel', {
+ defaultMessage: 'Elasticsearch indices',
+ }),
+ value: DEFAULT_INDEX_PATTERN,
+ description: i18n.translate('xpack.siem.uiSettings.defaultIndexDescription', {
+ defaultMessage:
+ 'Comma-delimited list of Elasticsearch indices from which the SIEM app collects events.
',
+ }),
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ [DEFAULT_ANOMALY_SCORE]: {
+ name: i18n.translate('xpack.siem.uiSettings.defaultAnomalyScoreLabel', {
+ defaultMessage: 'Anomaly threshold',
+ }),
+ value: 50,
+ type: 'number',
+ description: i18n.translate('xpack.siem.uiSettings.defaultAnomalyScoreDescription', {
+ defaultMessage:
+ 'Value above which Machine Learning job anomalies are displayed in the SIEM app.
Valid values: 0 to 100.
',
+ }),
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ [ENABLE_NEWS_FEED_SETTING]: {
+ name: i18n.translate('xpack.siem.uiSettings.enableNewsFeedLabel', {
+ defaultMessage: 'News feed',
+ }),
+ value: true,
+ description: i18n.translate('xpack.siem.uiSettings.enableNewsFeedDescription', {
+ defaultMessage: 'Enables the News feed
',
+ }),
+ type: 'boolean',
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ [NEWS_FEED_URL_SETTING]: {
+ name: i18n.translate('xpack.siem.uiSettings.newsFeedUrl', {
+ defaultMessage: 'News feed URL',
+ }),
+ value: NEWS_FEED_URL_SETTING_DEFAULT,
+ description: i18n.translate('xpack.siem.uiSettings.newsFeedUrlDescription', {
+ defaultMessage: 'News feed content will be retrieved from this URL
',
+ }),
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ [IP_REPUTATION_LINKS_SETTING]: {
+ name: i18n.translate('xpack.siem.uiSettings.ipReputationLinks', {
+ defaultMessage: 'IP Reputation Links',
+ }),
+ value: IP_REPUTATION_LINKS_SETTING_DEFAULT,
+ type: 'json',
+ description: i18n.translate('xpack.siem.uiSettings.ipReputationLinksDescription', {
+ defaultMessage:
+ 'Array of URL templates to build the list of reputation URLs to be displayed on the IP Details page.',
+ }),
+ category: ['siem'],
+ requiresPageReload: true,
+ },
+ });
+};
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/auditbeat.ts b/x-pack/plugins/siem/server/utils/beat_schema/8.0.0/auditbeat.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/auditbeat.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/8.0.0/auditbeat.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/ecs.ts b/x-pack/plugins/siem/server/utils/beat_schema/8.0.0/ecs.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/ecs.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/8.0.0/ecs.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/filebeat.ts b/x-pack/plugins/siem/server/utils/beat_schema/8.0.0/filebeat.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/filebeat.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/8.0.0/filebeat.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/index.ts b/x-pack/plugins/siem/server/utils/beat_schema/8.0.0/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/index.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/8.0.0/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/packetbeat.ts b/x-pack/plugins/siem/server/utils/beat_schema/8.0.0/packetbeat.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/packetbeat.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/8.0.0/packetbeat.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/winlogbeat.ts b/x-pack/plugins/siem/server/utils/beat_schema/8.0.0/winlogbeat.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/8.0.0/winlogbeat.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/8.0.0/winlogbeat.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/index.test.ts b/x-pack/plugins/siem/server/utils/beat_schema/index.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/index.test.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/index.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/index.ts b/x-pack/plugins/siem/server/utils/beat_schema/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/index.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/beat_schema/type.ts b/x-pack/plugins/siem/server/utils/beat_schema/type.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/beat_schema/type.ts
rename to x-pack/plugins/siem/server/utils/beat_schema/type.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/calculate_timeseries_interval.ts b/x-pack/plugins/siem/server/utils/build_query/calculate_timeseries_interval.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/calculate_timeseries_interval.ts
rename to x-pack/plugins/siem/server/utils/build_query/calculate_timeseries_interval.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/create_options.test.ts b/x-pack/plugins/siem/server/utils/build_query/create_options.test.ts
similarity index 93%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/create_options.test.ts
rename to x-pack/plugins/siem/server/utils/build_query/create_options.test.ts
index 8262b5b670d30..5ca67ad6ae51f 100644
--- a/x-pack/legacy/plugins/siem/server/utils/build_query/create_options.test.ts
+++ b/x-pack/plugins/siem/server/utils/build_query/create_options.test.ts
@@ -6,7 +6,7 @@
import { omit } from 'lodash/fp';
-import { defaultIndexPattern } from '../../../default_index_pattern';
+import { DEFAULT_INDEX_PATTERN } from '../../../common/constants';
import { Direction } from '../../graphql/types';
import { RequestOptions } from '../../lib/framework';
@@ -30,7 +30,7 @@ describe('createOptions', () => {
},
};
args = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
pagination: {
limit: 5,
},
@@ -57,7 +57,7 @@ describe('createOptions', () => {
test('should create options given all input including sort field', () => {
const options = createOptions(source, args, info);
const expected: RequestOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
host: 'host-1',
@@ -87,7 +87,7 @@ describe('createOptions', () => {
const argsWithoutSort: Args = omit('sortField', args);
const options = createOptions(source, argsWithoutSort, info);
const expected: RequestOptions = {
- defaultIndex: defaultIndexPattern,
+ defaultIndex: DEFAULT_INDEX_PATTERN,
sourceConfiguration: {
fields: {
host: 'host-1',
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/create_options.ts b/x-pack/plugins/siem/server/utils/build_query/create_options.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/create_options.ts
rename to x-pack/plugins/siem/server/utils/build_query/create_options.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/field.mock.ts b/x-pack/plugins/siem/server/utils/build_query/field.mock.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/field.mock.ts
rename to x-pack/plugins/siem/server/utils/build_query/field.mock.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/fields.test.ts b/x-pack/plugins/siem/server/utils/build_query/fields.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/fields.test.ts
rename to x-pack/plugins/siem/server/utils/build_query/fields.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/fields.ts b/x-pack/plugins/siem/server/utils/build_query/fields.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/fields.ts
rename to x-pack/plugins/siem/server/utils/build_query/fields.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/filters.ts b/x-pack/plugins/siem/server/utils/build_query/filters.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/filters.ts
rename to x-pack/plugins/siem/server/utils/build_query/filters.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/index.ts b/x-pack/plugins/siem/server/utils/build_query/index.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/index.ts
rename to x-pack/plugins/siem/server/utils/build_query/index.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/merge_fields_with_hits.test.ts b/x-pack/plugins/siem/server/utils/build_query/merge_fields_with_hits.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/merge_fields_with_hits.test.ts
rename to x-pack/plugins/siem/server/utils/build_query/merge_fields_with_hits.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/merge_fields_with_hits.ts b/x-pack/plugins/siem/server/utils/build_query/merge_fields_with_hits.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/merge_fields_with_hits.ts
rename to x-pack/plugins/siem/server/utils/build_query/merge_fields_with_hits.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/reduce_fields.test.ts b/x-pack/plugins/siem/server/utils/build_query/reduce_fields.test.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/reduce_fields.test.ts
rename to x-pack/plugins/siem/server/utils/build_query/reduce_fields.test.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/build_query/reduce_fields.ts b/x-pack/plugins/siem/server/utils/build_query/reduce_fields.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/build_query/reduce_fields.ts
rename to x-pack/plugins/siem/server/utils/build_query/reduce_fields.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/serialized_query.ts b/x-pack/plugins/siem/server/utils/serialized_query.ts
similarity index 92%
rename from x-pack/legacy/plugins/siem/server/utils/serialized_query.ts
rename to x-pack/plugins/siem/server/utils/serialized_query.ts
index 1ba6eb8b9f9a6..09b227d8c5a32 100644
--- a/x-pack/legacy/plugins/siem/server/utils/serialized_query.ts
+++ b/x-pack/plugins/siem/server/utils/serialized_query.ts
@@ -7,7 +7,7 @@
import { UserInputError } from 'apollo-server-errors';
import { isEmpty, isPlainObject, isString } from 'lodash/fp';
-import { JsonObject } from '../../../../../../src/plugins/kibana_utils/public';
+import { JsonObject } from '../../../../../src/plugins/kibana_utils/public';
export const parseFilterQuery = (filterQuery: string): JsonObject => {
try {
diff --git a/x-pack/legacy/plugins/siem/server/utils/typed_elasticsearch_mappings.ts b/x-pack/plugins/siem/server/utils/typed_elasticsearch_mappings.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/typed_elasticsearch_mappings.ts
rename to x-pack/plugins/siem/server/utils/typed_elasticsearch_mappings.ts
diff --git a/x-pack/legacy/plugins/siem/server/utils/typed_resolvers.ts b/x-pack/plugins/siem/server/utils/typed_resolvers.ts
similarity index 100%
rename from x-pack/legacy/plugins/siem/server/utils/typed_resolvers.ts
rename to x-pack/plugins/siem/server/utils/typed_resolvers.ts
diff --git a/x-pack/plugins/siem/tsconfig.json b/x-pack/plugins/siem/tsconfig.json
new file mode 100644
index 0000000000000..4082f16a5d91c
--- /dev/null
+++ b/x-pack/plugins/siem/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../tsconfig.json"
+}
diff --git a/x-pack/legacy/plugins/siem/yarn.lock b/x-pack/plugins/siem/yarn.lock
similarity index 100%
rename from x-pack/legacy/plugins/siem/yarn.lock
rename to x-pack/plugins/siem/yarn.lock
diff --git a/x-pack/tsconfig.json b/x-pack/tsconfig.json
index a6c94ff74620e..e2da4853a0f4b 100644
--- a/x-pack/tsconfig.json
+++ b/x-pack/tsconfig.json
@@ -11,7 +11,7 @@
],
"exclude": [
"test/**/*",
- "legacy/plugins/siem/cypress/**/*",
+ "plugins/siem/cypress/**/*",
"legacy/plugins/apm/e2e/cypress/**/*",
"**/typespec_tests.ts"
],