From 20e1daf0d285386c79a373e14fe0ad20c2086670 Mon Sep 17 00:00:00 2001 From: Lee E Hinman <57081003+leehinman@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:20:45 -0500 Subject: [PATCH] Update libbeat/cfgfile/cfgfile.go Co-authored-by: Tiago Queiroz --- libbeat/cfgfile/cfgfile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/cfgfile/cfgfile.go b/libbeat/cfgfile/cfgfile.go index 085afe368bef..a7300c8cf0fe 100644 --- a/libbeat/cfgfile/cfgfile.go +++ b/libbeat/cfgfile/cfgfile.go @@ -56,8 +56,8 @@ func Initialize() { "path": map[string]interface{}{ "home": ".", // to be initialized by beat "config": "${path.home}", - "data": fmt.Sprint("${path.home}", string(os.PathSeparator), "data"), - "logs": fmt.Sprint("${path.home}", string(os.PathSeparator), "logs"), + "data": filepath.Join("${path.home}", "data"), + "logs": filepath.Join("${path.home}", "logs"), }, }) homePath = config.ConfigOverwriteFlag(nil, overwrites, "path.home", "path.home", "", "Home path")