Cloudflare Docs
Cloudflare Fundamentals
Visit Cloudflare Fundamentals on GitHub
Set theme to dark (⇧+D)

Cloudflare Ray ID

A Cloudflare Ray ID is a unique identifier given to every request that goes through Cloudflare.

Ray IDs are particularly useful when evaluating Firewall Events for patterns or false positives or more generally understanding your application traffic.

​​ Look up Ray IDs

​​ Firewall events

All customers can view Ray IDs and associated information — IP address, user agent, ASN, etc. — by looking through the Activity Log of their Firewall Analytics.

Example list of events in the Activity log, with one of the events expanded to show its details

Additionally, you can add filters to look for specific Ray IDs.

Example of adding a new filter in Firewall Analytics for the Allow action

Please note that Firewall Analytics may use sampled data to improve performance. If sampled data is applied to your search, you might not see all Firewall Events, and filters might not return the expected results. In order to see more events, you’ll need to select a smaller timeframe so it is small enough to display only a few events.

​​ Logs

Enterprise customers can enable Ray ID as a field in their Cloudflare Logs.

​​ Server logs

For more details about sending Ray IDs to your server logs, refer to the CF-Ray header.