Count traffic per client address and report the busiest ones with the port totals

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-27 16:54:57 -06:00
1 parent b46e0813fe
commit ed9edbc9fd
7 files changed
+163 -17

No files matched your search

+1 -3
View File
@@ -544,9 +544,7 @@ func (t *traefikMgr) tailAccessLog(ctx context.Context) {
if ms == nil {
continue
}
ms.conns.Add(1)
ms.bytesIn.Add(tl.RequestSize)
ms.bytesOut.Add(tl.DownstreamSize)
ms.record(tl.ClientHost, 1, tl.RequestSize, tl.DownstreamSize)
t.b.logAccess(model.LogEntry{Time: tl.StartUTC, Mapping: id, Remote: tl.ClientHost, Method: tl.RequestMethod, Host: hostOnly(tl.RequestHost),
Path: tl.RequestPath, Status: tl.DownstreamStatus, Result: "allowed", BytesIn: tl.RequestSize, BytesOut: tl.DownstreamSize, Millis: tl.DurationNanos / 1e6})
}