From d9d236b32e8e16d6f14c08240a07271c64814a89 Mon Sep 17 00:00:00 2001 From: harid Date: Wed, 17 Dec 2025 10:49:01 +0700 Subject: [PATCH 1/2] SystemName = "recruiting" --- Core/RequestLoggingMiddleware.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/RequestLoggingMiddleware.cs b/Core/RequestLoggingMiddleware.cs index 6c21f64..a24a99a 100644 --- a/Core/RequestLoggingMiddleware.cs +++ b/Core/RequestLoggingMiddleware.cs @@ -28,7 +28,8 @@ namespace BMA.EHR.Recruit.Service.Core Uri = _configuration["ElasticConfiguration:Uri"] ?? "http://192.168.1.40:9200"; IndexFormat = _configuration["ElasticConfiguration:IndexFormat"] ?? "bma-ehr-log-index"; - SystemName = _configuration["ElasticConfiguration:SystemName"] ?? "Unknown"; + //SystemName = _configuration["ElasticConfiguration:SystemName"] ?? "Unknown"; + SystemName = "recruiting"; } protected async Task GetExternalAPIAsync(string apiPath, string accessToken, string apiKey) From bd5649e83bb4005fc7931b4ad2f62de3b4b5d0d4 Mon Sep 17 00:00:00 2001 From: harid Date: Wed, 28 Jan 2026 18:21:32 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B9=80=E0=B8=AA=E0=B9=89=E0=B8=99?= =?UTF-8?q?=20call=20api=20=E0=B8=AA=E0=B8=B3=E0=B8=AB=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B9=80=E0=B8=81=E0=B9=87=E0=B8=9A=20logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/RequestLoggingMiddleware.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/RequestLoggingMiddleware.cs b/Core/RequestLoggingMiddleware.cs index a24a99a..d1796ec 100644 --- a/Core/RequestLoggingMiddleware.cs +++ b/Core/RequestLoggingMiddleware.cs @@ -71,7 +71,8 @@ namespace BMA.EHR.Recruit.Service.Core { try { - var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + //var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + var apiPath = $"{_configuration["API"]}/org/dotnet/user-logs/{keycloakId}"; var apiKey = _configuration["API_KEY"] ?? ""; var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); @@ -246,7 +247,8 @@ namespace BMA.EHR.Recruit.Service.Core { logType = logType, ip = context.Connection.RemoteIpAddress?.ToString(), - rootId = pf == null ? null : pf.RootId, + //rootId = pf == null ? null : pf.RootId, + rootId = pf == null ? null : pf.RootDnaId, systemName = SystemName, startTimeStamp = startTime.ToString("o"), endTimeStamp = endTime.ToString("o"),