Data Infrastructure & Analytics
Logs from the Edge

Logs from the Edge

11/29/2018 · Michael Tremante

What this post added

This post introduces an example Cloudflare Worker implementation that leverages sub requests to send traffic logs to an arbitrary location, specifically an Elastic stack. It details the Worker code for collecting log data (timestamp, URL, referrer, method, ray ID, IP, host, user agent, country code, colo, TLS version/cipher, status) and asynchronously posting it via a PUT request to an ELK endpoint. It also discusses how this enables real-time logging for all users, contrasting it with Enterprise Log Share (ELS) and suggesting improvements with Argo Tunnel and Access for securing the logging backend.

Read the original post ↗