From 3da19d3517127dfc3949f58c689544d78b2e7b14 Mon Sep 17 00:00:00 2001 From: Max Altgelt Date: Wed, 18 Nov 2026 13:25:29 +0100 Subject: [PATCH] docs: document that event_id is a UUID --- thorlog/common/event.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thorlog/common/event.go b/thorlog/common/event.go index c34c1bf..67098f0 100644 --- a/thorlog/common/event.go +++ b/thorlog/common/event.go @@ -30,6 +30,9 @@ type LogEventMetadata struct { ScanID string `json:"scan_id" textlog:"scanid,omitempty"` // A unique ID for this event. // The ID is transient and the same element may have different IDs across multiple scans. + // + // In v3 events, it is guaranteed that the string is a UUID, and it is also guaranteed + // to be unique across multiple scans. GenID string `json:"event_id,omitempty" textlog:"uid,omitempty"` // The hostname of the machine where this event was generated. Source string `json:"hostname" textlog:"-"`