Hi Team,
While running a Dashboard query using “Run in Search”, the query returns No results, even though the same query shows results within the dashboard visualization. The issue specifically occurs when applying an equality filter (=) on a derived field created using an if() expression.
metadata.product_event_type = "test"
$inference = if(
security_result.summary = "Client Authentication Bypass", "ABP",
if(security_result.summary = "SSH Agent Forwarding Requested", "AFR")
)
$inference = "ABP"
match:
principal.ip, target.ip, $inference
-
When filtering with:
$inference = "ABP"→ No results are returned. -
However, removing the equality filter entirely returns results
-
Using a negation filter:
$inference != "ABP"→ Also returns results -
The issue is reproducible across multiple dashboard queries using similar derived-field logic.
-
The problem appears to be specific to equality (
=) filtering on fields derived viaif()expressions. -
Dashboard widgets show results, but “Run in Search” does not.
Questions
-
Is this a known issue or limitation with equality filtering on derived fields?
-
Is there a recommended workaround or alternative syntax to reliably filter on derived values?
-
Are there differences in how dashboard queries vs. “Run in Search” evaluate derived fields?
