architecture8 min read

Filter, reshape, and redact logs before export with Cloudflare Transformers

1 similar post
  • Cloudflare Logpush
  • Apache DataFusion
  • Apache Arrow
  • Bufstream
  • Transformer Studio

AI Summary

Cloudflare explains how its Logpush Transformers feature allows users to filter, redact, and reshape log data using SQL queries before export. The article details the architecture, choosing Apache DataFusion and Apache Arrow for in-process Rust execution within the Go-based Bufstream delivery service, and managing memory boundaries across FFI safely.

Key Takeaways

  • Cloudflare integrated SQL-based log transformation directly into its Logpush pipeline via Apache DataFusion and Apache Arrow.
  • Running transformations in-process avoids network hops and latency issues encountered with separate worker services.
  • Explicit memory management across the Go/Rust FFI boundary prevents cross-runtime memory leaks and bugs.

Why it matters

Understanding how to integrate a high-throughput SQL engine like Apache DataFusion into an existing Go-based pipeline using Apache Arrow and cgo offers valuable architectural patterns for large-scale data processing and observability systems.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.