bug fix
This commit is contained in:
parent
1f83148aca
commit
b7c4a78158
@ -61,11 +61,11 @@ func (w *LokiWriter) Write(p []byte) (n int, err error) {
|
|||||||
|
|
||||||
for k,v := range(event){
|
for k,v := range(event){
|
||||||
if k != "level" && k != "time" && k != "message"{
|
if k != "level" && k != "time" && k != "message"{
|
||||||
data := v.(map[string]string)
|
labels[k] = v.(string)
|
||||||
labels[k] = data["data"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Format the timestamp in nanoseconds
|
// Format the timestamp in nanoseconds
|
||||||
timestamp := fmt.Sprintf("%d000000", time.Now().UnixNano()/int64(time.Millisecond))
|
timestamp := fmt.Sprintf("%d000000", time.Now().UnixNano()/int64(time.Millisecond))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user