尝试给上报到elasticsearch的文档加_id
This commit is contained in:
parent
7aadf4b0b6
commit
04a441d08c
@ -286,7 +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.Id = hashString(did)
|
||||||
cl.ToStruct(core)
|
cl.ToStruct(core)
|
||||||
cd, _ := json.Marshal(cl)
|
cd, _ := json.Marshal(cl)
|
||||||
wg := WriteLog{
|
wg := WriteLog{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user