From 9dba262a20e1cd51c1fa88b4e1da347704151a94 Mon Sep 17 00:00:00 2001 From: pascal Date: Wed, 11 Feb 2026 17:07:15 +0100 Subject: [PATCH] add index to access log entries --- .../reverseproxy/accesslogs/accesslogentry.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/management/internals/modules/reverseproxy/accesslogs/accesslogentry.go b/management/internals/modules/reverseproxy/accesslogs/accesslogentry.go index b524d027b..1101dc681 100644 --- a/management/internals/modules/reverseproxy/accesslogs/accesslogentry.go +++ b/management/internals/modules/reverseproxy/accesslogs/accesslogentry.go @@ -16,14 +16,14 @@ type AccessLogEntry struct { ProxyID string `gorm:"index"` Timestamp time.Time `gorm:"index"` GeoLocation peer.Location `gorm:"embedded;embeddedPrefix:location_"` - Method string - Host string - Path string - Duration time.Duration - StatusCode int + Method string `gorm:"index"` + Host string `gorm:"index"` + Path string `gorm:"index"` + Duration time.Duration `gorm:"index"` + StatusCode int `gorm:"index"` Reason string - UserId string - AuthMethodUsed string + UserId string `gorm:"index"` + AuthMethodUsed string `gorm:"index"` } // FromProto creates an AccessLogEntry from a proto.AccessLog