CDN Log Analyzer
Quick use
Run the bundled analyzer script and then summarize the results.
Local file:
bash
node scripts/analyze-cdn-logs.js --file /path/to/cdn.log
URL (HTTPS-only v1):
bash
node scripts/analyze-cdn-logs.js --url "https://example.com/cdn.log" node scripts/analyze-cdn-logs.js --url "https://example.com/cdn.log" --header "Authorization: Bearer XXX"
Workflow
- •Ask for the input source:
--filepath or--url. - •Ask what they care about (errors, cache misses, top endpoints, latency).
- •Run the script.
- •Report:
- •detected format + confidence
- •parse success rate
- •time range
- •status distribution + top status codes
- •top hosts/paths/ips/user agents
- •bytes totals (if present)
- •cache hit/miss (if present)
- •latency percentiles (if present)
Notes
- •Format detection is best-effort and based on sampling.
- •The script is deterministic; it does not call an LLM.