From 805649c5f832c609a650e6037837e8480ffcde77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Strzali=C5=84ski?= Date: Tue, 7 May 2024 13:57:56 +0200 Subject: [PATCH] extracted constants --- docker/device-log-generator/windows_logs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/device-log-generator/windows_logs.go b/docker/device-log-generator/windows_logs.go index eb1444243..65354a193 100644 --- a/docker/device-log-generator/windows_logs.go +++ b/docker/device-log-generator/windows_logs.go @@ -14,6 +14,7 @@ import ( "time" ) +const elasticSearchBulkUrl = "http://elasticsearch:9200/_bulk" const windowsJsonFile = "assets/windows_logs.json" const windowsBulkJson = `{"create":{"_index":"windows_logs"}}` @@ -252,7 +253,8 @@ func sendToWindowsLog(logBytes []byte) { // We need the same data in both places for manual testing purposes. // This is temporary and will be removed when we'll have end-to-end tests. // - sendToWindowsLogTo("http://elasticsearch:9200/_bulk", logBytes) + + sendToWindowsLogTo(elasticSearchBulkUrl, logBytes) sendToWindowsLogTo(configureTargetUrl(), logBytes) }