|
|
@ -281,12 +281,13 @@ func (the *ESHelper) BulkWriteRaws2Es(index string, raws []models.EsRaw, logIds |
|
|
|
%s |
|
|
|
`, index, _id, source) |
|
|
|
body.WriteString(s) |
|
|
|
|
|
|
|
if len(logIds) > 0 { |
|
|
|
if raw.IotaDevice == logIds[0] { |
|
|
|
log.Printf("BulkWriteRaws2Es 标记设备数据 [%s] %s ", raw.IotaDevice, s) |
|
|
|
logTag = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if logTag { //追踪数据
|
|
|
|
the.BulkWriteWithLog(index, body.String()) |
|
|
|
} else { |
|
|
|