test_scenario
Test a CrowdSec scenario against multiple log lines by replaying events as if occurring in real-time.
Instructions
Test a CrowdSec scenario against multiple log lines (effectively replaying the events as if they were occurring in real-time).
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": {
"scenario_yaml": "<scenario_yaml>",
"log_lines": "<log_lines>",
"log_type": "<log_type>",
"collections": "<collections>"
},
"name": "test_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_type | Yes | Type of logs the scenario is intended to analyze | |
| log_lines | Yes | List of log lines to test against the scenario | |
| collections | Yes | List of CrowdSec collections to install alongside the scenario | |
| scenario_yaml | Yes | Scenario YAML to test |