findings_overview
Produce a findings summary broken down by severity, agent, rule title, and category. A pre-built aggregation saves writing OpenSearch query DSL, returning compact tables for report breakdowns.
Instructions
Summarise wazuh-findings-v5-* by severity, agent, rule title and category.
A frozen query for the breakdown every report starts with, so that producing
it needs no valid OpenSearch query DSL. search still covers everything
else; this tool only removes the need to hand-write the one aggregation that
recurs.
Severity is wazuh.rule.level, a keyword holding a string — critical,
high, medium, low, informational — not a Wazuh 4.x numeric level. The whole
scale is printed in canonical order with an explicit 0 for the levels that
did not occur, because a terms aggregation returns only the values it found:
a missing critical bucket cannot distinguish "none occurred" from "never
populated". Any value outside the scale is listed as well and marked
UNKNOWN. Before aggregating, the tool probes whether wazuh.rule.level is
populated at all and says so instead of printing a table of zeros.
Output is a compact set of tables, not raw JSON. The request that produced
them is in the footer if you want to re-run or extend it via search.
Args: hours: Size of the time window ending now, in hours. Default 24. top_agents: How many agents to list, by finding count. Default 10. top_titles: How many rule titles to list. Default 10.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| top_agents | No | ||
| top_titles | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |