diff --git a/x-pack/plugins/cloud_security_posture/public/plugin.ts b/x-pack/plugins/cloud_security_posture/public/plugin.ts index a9fccb5a1d8b..284d0180c061 100755 --- a/x-pack/plugins/cloud_security_posture/public/plugin.ts +++ b/x-pack/plugins/cloud_security_posture/public/plugin.ts @@ -65,6 +65,9 @@ async function registerKubebeatDataView( ) { try { const [, depsStart] = await core.getStartServices(); + const dataView = await depsStart.data.dataViews.find(CSP_KUBEBEAT_INDEX_NAME); + if (dataView) return; + await depsStart.data.dataViews.createAndSave({ title: CSP_KUBEBEAT_INDEX_NAME, allowNoIndex: true,