From 1dee8c87a4083afad5fa8add62c62ec5111e9fcd Mon Sep 17 00:00:00 2001 From: zhangkun Date: Wed, 4 Dec 2024 09:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E7=BB=99=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E5=88=B0elasticsearch=E7=9A=84=E6=96=87=E6=A1=A3=E5=8A=A0=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/writeLog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/writeLog.go b/core/writeLog.go index b5021f9..e16719d 100644 --- a/core/writeLog.go +++ b/core/writeLog.go @@ -20,7 +20,7 @@ func (wg *WriteLog) Process(cr *Core) error { reqBody := bytes.NewBuffer(wg.Content) cr.Env = os.Getenv("GO_ENV") cr.FluentBitUrl = os.Getenv("TEXUS_FluentBitUrl") - fullUrl := "http://" + cr.FluentBitUrl + "/" + wg.Tag + "/_doc/" + wg.Id + fullUrl := "http://" + cr.FluentBitUrl + "/" + wg.Tag res, err := http.Post(fullUrl, "application/json", reqBody) fmt.Println("requested, response:", fullUrl, string(wg.Content), res)