Skip to main content
MaAtVA
Explorer
December 2, 2025
Solved

Analyzer SQL Query:

  • December 2, 2025
  • 1 reply
  • 262 views

Hello, i try to write a Report Query with a where clause for the "action" field, if action is only in the "SELECT", "GROUP BY" and "ORDER BY" statement everything works as expected, but if i add the action field to the "WHERE" clause it does not work.

The following query does not work, commenting out the "AND action like 'deny'" row will make it work, can somebody explain this behavior to me??

I am using "traffic" log type source.

 

SELECT srcip, dstip, action FROM $log as l WHERE $filter AND policyid=0 AND action like 'deny' GROUP BY ( srcip, dstip, action ) ORDER BY srcip, dstip

 

Best answer by funkylicious

hi,

try action = 'deny'

1 reply

funkylicious
SuperUser
SuperUser
December 2, 2025

hi,

try action = 'deny'

"jack of all trades, master of none"