From 9be2beb69b26f43aceae02f47e431817fdc6a9a5 Mon Sep 17 00:00:00 2001 From: Mark Hopkin Date: Fri, 18 Oct 2024 19:10:52 +0100 Subject: [PATCH] [8.16] [Entity Analytics] Bug: update timestamp on criticality soft delete (#196722) (#196881) # Backport This will backport the following commits from `main` to `8.16`: - [[Entity Analytics] Bug: update timestamp on criticality soft delete (#196722)](https://github.com/elastic/kibana/pull/196722) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) \n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Tiago Vila Verde "}}]}] BACKPORT--> Co-authored-by: Tiago Vila Verde --- .../asset_criticality/asset_criticality_data_client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts b/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts index 4f051c48dcd6c..b957030f2c8e5 100644 --- a/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts +++ b/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts @@ -342,6 +342,7 @@ export class AssetCriticalityDataClient { asset: { criticality: CRITICALITY_VALUES.DELETED, }, + '@timestamp': new Date().toISOString(), ...getImplicitEntityFields({ ...idParts, criticalityLevel: CRITICALITY_VALUES.DELETED,