Skip to content

Commit d128c5e

Browse files
committed
fix: size issue in logs
1 parent b85069e commit d128c5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/logs/dao.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (es *elasticsearch) getRawLogs(ctx context.Context, from, size, filter stri
148148

149149
logs := make(map[string]interface{})
150150
logs["logs"] = hits
151-
logs["total"] = len(hits)
151+
logs["total"] = response.Hits.TotalHits.Value
152152
logs["took"] = response.TookInMillis
153153

154154
raw, err := json.Marshal(logs)

0 commit comments

Comments
 (0)