From bf343c8c49f9df3593e0c22c9e2dfab5c770234b Mon Sep 17 00:00:00 2001 From: liugq Date: Wed, 14 Jun 2023 09:46:01 +0800 Subject: [PATCH] add read log file param start_line_number --- modules/agent/api/log.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/agent/api/log.go b/modules/agent/api/log.go index 0164fc5d..a50d3e8f 100644 --- a/modules/agent/api/log.go +++ b/modules/agent/api/log.go @@ -61,6 +61,7 @@ func (h *APIHandler) getLogFileContent(w http.ResponseWriter, req *http.Request, LogsPath string `json:"logs_path"` Offset int `json:"offset"` Lines int `json:"lines"` + StartLineNumber int64 `json:"start_line_number"` }{} err = h.DecodeJSON(req, &reqBody) if err != nil {