From e4e0d49ace5ba5f3d721ffed31783b558f50cde4 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 29 Jul 2025 17:56:47 +0900 Subject: [PATCH] =?UTF-8?q?logstream=20indexprefix=20=EB=B9=84=EC=97=88?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opensearch/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensearch/client.go b/opensearch/client.go index 20d7b3a..3633afa 100644 --- a/opensearch/client.go +++ b/opensearch/client.go @@ -158,7 +158,7 @@ func NewClient(cfg Config) (Client, error) { } indexPrefix := cfg.IndexPrefix - if !strings.HasSuffix(indexPrefix, "-") { + if !strings.HasSuffix(indexPrefix, "-") && len(indexPrefix) > 0 { indexPrefix += "-" } if !strings.HasSuffix(indexPrefix, "ds-logs-") {