Index logs by reception time, host filter from displayed logs, pastel tags
- _time is now the reception time; the device timestamp moves to msg_time. Devices with a wrong clock were indexed in the past and escaped time ranges and the host list. - Host/app lists also include values seen in displayed and live logs; clicking a host or app cell filters on it. - Severity badges err/crit and warning use the colors of the error and warning tags; default tags are now pastel (old default colors migrated). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7a706eeb82
commit
e583ab4b87
5 files changed
+117
-20
No files matched your search
@@ -38,10 +38,15 @@ type Entry struct {
|
||||
}
|
||||
|
||||
// Record returns the entry in the shape stored in VictoriaLogs and returned by the API.
|
||||
// The time axis (_time) is the reception time: device clocks can be wrong, and
|
||||
// logs indexed in the past would escape time ranges. The device timestamp is
|
||||
// kept in msg_time.
|
||||
func (e *Entry) Record() map[string]string {
|
||||
rcv := e.Received.UTC().Format(time.RFC3339Nano)
|
||||
r := map[string]string{
|
||||
"_time": e.Time.UTC().Format(time.RFC3339Nano),
|
||||
"received": e.Received.UTC().Format(time.RFC3339Nano),
|
||||
"_time": rcv,
|
||||
"received": rcv,
|
||||
"msg_time": e.Time.UTC().Format(time.RFC3339Nano),
|
||||
"_msg": e.Message,
|
||||
"host": e.Host,
|
||||
"app": e.App,
|
||||
|
||||
Reference in new issue
Block a user