You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Ship botlog URI with query params intact
- Add ParsedLine.RawURI (path + query string) alongside RawPath
so observers see the full hit URL; populated in all three parse
paths (text/$request, text/$uri, JSON request_uri)
- Switch botlog Observer to prefer RawURI with fallback chain
RawURI -> RawPath -> URI; gatesrv-side HasQueryParams now works
on bot-log events instead of always returning false
- Bump DefaultBatchInterval 5s -> 30s; quiet hosts were flushing
~50-event payloads every tick, larger batches compress better
- Cover the new field across both parsers including
percent-encoded query strings, plus the observer fallback chain
* Drop redundant ParsedLine.RawPath
- RawPath was only read by botlog Observer as the middle of a
three-level fallback (RawURI -> RawPath -> URI). All three parser
paths populate RawPath and RawURI together, so RawPath was never
the only field set — middle fallback was unreachable
- Remove rawPathFromRequest and rawPathFromJSON; this eliminates a
duplicate strings.SplitN per parsed line on the hot path
- Collapse observer fallback to RawURI -> URI; drop the synthetic
TestObserver_FallsBackToRawPathWhenRawURIEmpty that exercised
the unreachable state
- Rename TestParsedLine_RawPathUnnormalized to *_RawURIUnnormalized
and drop wantRawPath assertions; recordedLine.rawPath gone too
* Cap botlog Event.URI at URITruncate
- Add Config.URITruncate (default 2048) symmetrical to UATruncate;
IE's legacy 2083-char URL limit covers >99% of legitimate traffic
- Observer truncates Event.URI before BuildEvent so pathological
bot probes (4-8KB base64/SQLi payloads in query strings) cannot
bloat WAL writes or the gatesrv POST body
- Pre-fix RawPath stripped queries kept URIs naturally short; with
RawURI carrying the query verbatim we need an explicit cap
* Update README botlog defaults
- BatchInterval 5s -> 30s
- Add URITruncate row (default 2048)
0 commit comments