| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/fundamentals/reference/cloudflare-ray-id/ | [Back] [Original] |
A Cloudflare Ray ID is an identifier given to every request that goes through Cloudflare.
Ray IDs are particularly useful when evaluating Security Events for patterns or false positives or more generally understanding your application traffic.
Ray IDs are added as a request header, cf-ray, to the connection from Cloudflare to the origin web server.
As such the Ray IDs can be found using the Developer Tools in your browser or using curl with the -v option to show the headers.
Caution
Ray IDs are not guaranteed to be unique for every request. In some situations, different requests may have the same Ray ID.
All customers can view Ray IDs and associated information IP address, user agent, ASN, etc. by looking through sampled logs in Security Events.
[Example list of events in sampled logs, with the Ray ID highlighted from one of the expanded events to show its details]
Additionally, you can add filters to look for specific Ray IDs.
[Example of adding a new filter in Security Events for the Block action]
Please note that Security Events may use sampled data to improve performance. If sampled data is applied to your search, you might not see all events, and filters might not return the expected results. To display more events, select a smaller timeframe.
Log Explorer provides access to Cloudflare logs with all the context available within the Cloudflare platform. You can monitor security and performance issues with custom dashboards or investigate and troubleshoot issues with log search. Log explorer allows you to build queries for filtering specific Ray IDs.
Enterprise customers can enable Ray ID as a field in their Cloudflare Logs.
For more details about sending Ray IDs to your server logs, refer to the Cf-Ray header.
| Web Proxy Viewer | New URL | Original Page |