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
Solved! Go to Solution.
hi,
try action = 'deny'
| User | Count |
|---|---|
| 2836 | |
| 1433 | |
| 812 | |
| 796 | |
| 455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.