Skip to content

Commit

Permalink
extracted constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nablaone committed May 7, 2024
1 parent 93ef43f commit 805649c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/device-log-generator/windows_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"time"
)

const elasticSearchBulkUrl = "http://elasticsearch:9200/_bulk"
const windowsJsonFile = "assets/windows_logs.json"

const windowsBulkJson = `{"create":{"_index":"windows_logs"}}`
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 805649c

Please sign in to comment.