This tutorial is deprecated due to the new firewall UI displaying more infortmaion negating the need for this.
Archive
With the update to the firewall events log, the log now shows the rule name of the triggered rule which makes it easier to track down. If you still need to see the rule ID of a specific rule, you can follow this tutorial.
The rule ID of a Firewall Rule cannot be viewed on the normal dashboard pages. You have to go to the Developer Tools in your browser to see the ID.
This tutorial starts from the point where you have developer tools open in your browser. If you are not sure how to do this, please see Using Developer Tools in your browser to troubleshoot issues.
- Once you have opened Developer Tools, go to the ‘Network’ tab.
- Go to the ‘Firewall Rules’ page in your Cloudflare dashboard (if you already have it open, refresh the page)
- In the network tab, you should see a call like
rules?per_page=25
, click on this. - choose the ‘Response’ menu item,
- You can then see each rule listed with the relevant rule ID like below:
{
"result": [
{
"id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"paused": false,
"description": "DESCRIPTION",
"action": "BLOCK",
"filter": {
"id": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
"expression": "(EXPRESSION)",
"paused": false
},
"created_on": "DATE-TIME",
"modified_on": "DATE-TIME"
}
],
"success": true,
"errors": [],
"messages": [],
"result_info": {
"page": 1,
"per_page": 25,
"count": 1,
"total_count": 1,
"total_pages": 1
}
}
In the example above, YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
is what will be shown under ‘Match Triggered’ in the firewall events log.
Tutorial Reference: CT-23
Reviewed: 08/21
This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here. If there is a tutorial you would like to see, you can request one here.
If you would like to provide any feedback on this tutorial, please post in the #Meta category, tag your post #TutorialFeedback and let us know the Tutorial Reference above.
Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community from people in the know that may help you with your issue.
We encourage users to check out these great resources and the Cloudflare Support Centre before posting