Slicing and Dicing Instant Logs: Real-time Insights on the Command Line
Feb 7, 2022Cole MacKenzie

Summary
This post introduces the ability to consume Cloudflare Instant Logs via WebSockets and analyze them in real-time on the command line using tools like Websocat and Angle Grinder. It details how to create an Instant Logs session, specify desired log fields (e.g., ClientIP, FirewallMatchesActions), set sample rates, and apply filters based on request path. A practical example demonstrates how to verify a newly deployed firewall rule by analyzing logs for requests to a specific path and filtering by country and firewall actions.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows