实现日志消息聚合

This commit is contained in:
GoEdgeLab
2021-05-19 20:52:41 +08:00
parent 9e2b61367a
commit 59564f5702
5 changed files with 72 additions and 9 deletions

View File

@@ -70,6 +70,7 @@ func (this *IndexAction) RunGet(params struct {
"createdTime": timeutil.FormatTime("Y-m-d H:i:s", log.CreatedAt),
"level": log.Level,
"isToday": timeutil.FormatTime("Y-m-d", log.CreatedAt) == timeutil.Format("Y-m-d"),
"count": log.Count,
"node": maps.Map{
"id": node.Id,
"cluster": maps.Map{