profile_rules
Runs Snort's rule profiler on a packet capture to rank rules by processing time, showing checks, matches, and time for performance tuning.
Instructions
Run the rules with Snort's rule profiler and return the slowest rules with checks, matches and time. Example: profile_rules(pcap_id="e-0001", rules_id="e-0002", top=10)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pcap_id": "<pcap_id>"
},
"name": "profile_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| pcap_id | Yes | ||
| rules_id | No | ||
| rules_text | No |