tester_sessions
List Wazuh engine test sessions to identify existing and enabled environments, preventing misinterpretation of logtest responses.
Instructions
List the Wazuh 5 engine test sessions — the environments logtest can use.
logtest answers a call naming an environment that does not exist with
HTTP 200 and "The '' environment does not exist" buried in the body.
This tool is how to find out which environments there actually are, and
whether they are enabled.
Calls POST /_internal/tester/table/get on the engine's internal HTTP API. That server runs inside the manager container on its own port, so it needs WAZUH_ENGINE_URL — the indexer and manager URLs do not reach it.
Read-only by design. The engine also exposes session/post, session/delete and session/reload; none of them are wired up here. Sessions are recreated on every policy import through the Content Manager API, so a hand-made session disappears at the next import — a create tool would only invite a workaround that does not hold.
Args: action: Only "list" is supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |