尝试给上报到elasticsearch的文档加_id

This commit is contained in:
zhangkun 2024-12-04 00:17:54 +08:00
parent 0bec1b219e
commit b45539bbac
2 changed files with 1 additions and 0 deletions

View File

@ -286,6 +286,7 @@ func (core *Core) SaveUniKey(period string, keyName string, extt time.Duration,
} }
did := cl.InstId + cl.Period + cl.Data[0].(string) did := cl.InstId + cl.Period + cl.Data[0].(string)
cl.Id = did
cl.ToStruct(core) cl.ToStruct(core)
cd, _ := json.Marshal(cl) cd, _ := json.Marshal(cl)
wg := WriteLog{ wg := WriteLog{

BIN
tunas

Binary file not shown.