Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
MaAtVA
New Contributor

Analyzer SQL Query:

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

 

1 Solution
funkylicious
SuperUser
SuperUser

hi,

try action = 'deny'

"jack of all trades, master of none"

View solution in original post

"jack of all trades, master of none"
1 REPLY 1
funkylicious
SuperUser
SuperUser

hi,

try action = 'deny'

"jack of all trades, master of none"
"jack of all trades, master of none"
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors