From 61e0f615e35ee37b9fbde8a216b9b44c0b98293c Mon Sep 17 00:00:00 2001 From: stevenGravy Date: Sat, 26 Oct 2024 07:54:10 -0400 Subject: [PATCH] [web] update desktop audit log entry for session id --- web/packages/teleport/src/services/audit/makeEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/packages/teleport/src/services/audit/makeEvent.ts b/web/packages/teleport/src/services/audit/makeEvent.ts index 2a2bf26a3ba5e..4d1c8fd93eb1d 100644 --- a/web/packages/teleport/src/services/audit/makeEvent.ts +++ b/web/packages/teleport/src/services/audit/makeEvent.ts @@ -1265,7 +1265,7 @@ export const formatters: Formatters = { type: 'windows.desktop.session.start', desc: 'Windows Desktop Session Started', format: ({ user, windows_domain, desktop_name, sid, windows_user }) => { - let message = `User [${user}] started session ${sid} on Windows desktop [${windows_user}@${desktop_name}]`; + let message = `User [${user}] started session [${sid}] on Windows desktop [${windows_user}@${desktop_name}]`; if (windows_domain) { message += ` with domain [${windows_domain}]`; } @@ -1291,7 +1291,7 @@ export const formatters: Formatters = { if (windows_domain) { desktopMessage += ` with domain [${windows_domain}]`; } - let message = `Session ${sid} for Windows desktop ${desktopMessage} has ended for user [${user}]`; + let message = `Session [${sid}] for Windows desktop ${desktopMessage} has ended for user [${user}]`; return message; }, },