A healthcare SOC analyst writes the CQL filter (event.action="x" AND clinic_subnet="yes") OR event.action="y" intending both actions restricted to the clinic subnet, but results include traffic from other subnets. What should the analyst check?
Select an answer to reveal the explanation.
Short Explanation
The explicit grouping permits every y event you did not intend to include. Use (event.action="x" OR event.action="y") AND clinic_subnet="yes". CQL query filters give OR higher precedence than AND; do not import SQL/programming-language precedence.
Full Explanation
The filter is written as (event.action="x" AND clinic_subnet="yes") OR event.action="y" with the intent that both actions are restricted to the clinic subnet. The explicit grouping permits every y event. Use (event.action="x" OR event.action="y") AND clinic_subnet="yes". CQL query filters give OR higher precedence than AND; do not import SQL/programming-language precedence. You should verify parentheses and operator precedence around the OR conditions so the subnet predicate encloses the full disjunction rather than only one branch. Increasing the dashboard refresh interval so older subnet records expire only controls panel reload timing and cannot change which events satisfy boolean logic, so out-of-scope subnets will continue to appear. Replacing the subnet filter with a wildcard match on the raw log string degrades precision because substring matching can hit partial octets, other fields, or unrelated text instead of enforcing the structured clinic_subnet field. Removing the time-window selector so the query only scans recent events confuses result volume with filter correctness and leaves the faulty grouping in place while broadening the search scope. As a final check, validate CIDR or IP formatting and field names inside each group and confirm with a grouping aggregation on source or destination IP that all results belong to the clinic subnet.
Prefer to study offline? Printable PDF study book + test engine ($7.50, unofficial). These questions stay free here.