diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/install.ts b/x-pack/plugins/fleet/server/services/epm/kibana/assets/install.ts index ec0cbab539bcd..fdeb75480ea79 100644 --- a/x-pack/plugins/fleet/server/services/epm/kibana/assets/install.ts +++ b/x-pack/plugins/fleet/server/services/epm/kibana/assets/install.ts @@ -101,13 +101,12 @@ export function createSavedObjectKibanaAsset(asset: ArchiveAsset): SavedObjectTo if (asset.migrationVersion) { so.migrationVersion = asset.migrationVersion; - } else { - if (asset.coreMigrationVersion) { - so.coreMigrationVersion = asset.coreMigrationVersion; - } - if (asset.typeMigrationVersion) { - so.typeMigrationVersion = asset.typeMigrationVersion; - } + } + if (asset.coreMigrationVersion) { + so.coreMigrationVersion = asset.coreMigrationVersion; + } + if (asset.typeMigrationVersion) { + so.typeMigrationVersion = asset.typeMigrationVersion; } return so as SavedObjectToBe; } diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.ts b/x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.ts index 1637bf19d8df4..91e603e80aee2 100644 --- a/x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.ts +++ b/x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.ts @@ -18,6 +18,8 @@ export function getIndexPatternSavedObjects() { return indexPatternTypes.map((indexPatternType) => ({ id: `${indexPatternType}-*`, type: INDEX_PATTERN_SAVED_OBJECT_TYPE, + // workaround until https://github.com/elastic/kibana/issues/164454 is fixed + typeMigrationVersion: '8.0.0', attributes: { title: `${indexPatternType}-*`, timeFieldName: '@timestamp',