logtest
Test a log line against the Wazuh manager's current ruleset to identify the matching decoder, rule, and level; draft rules are not loaded.
Instructions
Run a log line through the manager's CURRENT ruleset (wazuh-logtest API) and see which decoder/rule/level matches. Cannot test a new draft rule (it is not loaded).
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": {
"event": "<event>"
},
"name": "logtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | environment id (list_environments) | |
| event | Yes | ||
| location | No | ||
| log_format | No |