diff --git a/x-pack/plugins/fleet/server/services/agents/helpers.ts b/x-pack/plugins/fleet/server/services/agents/helpers.ts index 609d5ba6c83a..a4a7803d35e2 100644 --- a/x-pack/plugins/fleet/server/services/agents/helpers.ts +++ b/x-pack/plugins/fleet/server/services/agents/helpers.ts @@ -42,5 +42,9 @@ export function agentSOAttributesToFleetServerAgentDoc( doc.policy_revision_idx = policyRevison; } + if (!doc.updated_at) { + doc.updated_at = new Date().toISOString(); + } + return doc; }