v0.7.1 · updated · GitHub

top

Ranked inspector. read-only — never modifies the system.

Synopsis

caddy-analyze top [dimension] [source...] [flags]
caddy-analyze top -b <dimension> [source...]   # --by alias

Dimension defaults to path if omitted.

Flags

FlagShortDefaultDescription
--by-bDimension alias for positional arg
--top-t10Max entries (also global --top)

Inherits all global flags (--from, --country, --5xx, --format, etc. — see CLI Reference).

Dimensions

DimensionNeeds GeoIPDescription
pathTop requested paths
ipTop client IPs
uaTop user agents
statusTop status codes
methodTop HTTP methods
hostTop hosts
bandwidthTop by response size
countryyesTop countries (human-readable names)
cityyes, city MMDBTop client cities
asnyesTop ASNs

Minimal example

read-only

caddy-analyze top ip testdata/sample.log
caddy-analyze top path -t 20 testdata/sample.log
caddy-analyze top country testdata/sample.log

Advanced example

read-only — filtered, formatted, file output.

caddy-analyze top path --5xx -t 20 -f csv -o top-5xx.csv testdata/sample.log
caddy-analyze top ip --from 1h --country IT -t 15 -f json testdata/large.log | jq
caddy-analyze top asn --no-bots --from 7d /var/log/caddy/access.log -f csv -o top-asn.csv