logtest
Run a raw log line through the Wazuh decoder chain to see which decoders match and how the event is normalized. Diagnose why fields appear empty in the index.
Instructions
Run a raw log line through the Wazuh 5 decoder chain and return the result.
Calls the Content Manager plugin on the indexer. The response shows which decoders matched and what the normalised WCS document looks like, which is the way to find out why a field is empty in the index.
Args:
event: The raw log line to decode.
location: Log source path, e.g. "/var/ossec/logs/opnsense_syslog.log".
queue: Queue id of the originating source. Defaults to 49.
space: One of test, custom, standard — logtest supports no others. Custom
decoders live in "custom"; "standard" carries only the shipped ruleset.
A valid name does not guarantee the environment is provisioned — use
the tester_sessions tool to see which ones exist and are enabled.
trace_level: One of NONE, ASSET_ONLY, ALL. Defaults to ASSET_ONLY, which
is the level that reveals the matched decoder chain. NONE returns the
normalised event only; ALL adds per-asset trace detail.
integration: Integration name for the detection phase. Without it the
plugin normalises the event and reports detection as "skipped".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| queue | No | ||
| space | No | ||
| location | Yes | ||
| integration | No | ||
| trace_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |