Data Infrastructure & Analytics
Slicing and Dicing Instant Logs: Real-time Insights on the Command Line

Slicing and Dicing Instant Logs: Real-time Insights on the Command Line

2/7/2022 · Cole MacKenzie

What this post added

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.

Read the original post ↗