Skip to main content
FortiDave
Explorer
May 9, 2022 10:47 AM UTC
Solved

FAZ Top Services In a Rule

Hi all,

I have a number of overly permissive rules using any services. What would be the most effecient way of extracting a report in FAZ, so I can see what services are actually hitting the rule, and design a policy around that?

Thanks.

 
 
Debbie_FTNT
Staff & Editor
May 9, 2022 11:09 AM UTC

Hey FortiDave,

you could put together a dataset roughly like this:

select service, count(*) as num_hits

from $log

where $filter and policyid=<policy ID>

group by service

order by num_hits desc

 

That would list the services and associated number of logs for each service for that policy ID

You would need to map that dataset to a custom chart and add that to a report to display the information, and you might want to do a bit of fine tuning, but this should give you at least a rough overview.

5 replies

Debbie_FTNT
Staff & Editor
Staff & Editor
May 9, 2022 11:09 AM UTC

Hey FortiDave,

you could put together a dataset roughly like this:

select service, count(*) as num_hits

from $log

where $filter and policyid=<policy ID>

group by service

order by num_hits desc

 

That would list the services and associated number of logs for each service for that policy ID

You would need to map that dataset to a custom chart and add that to a report to display the information, and you might want to do a bit of fine tuning, but this should give you at least a rough overview.

FortiDave
FortiDaveAuthor
Explorer
May 9, 2022 11:49 AM UTC

Thanks Debbie. Im not getting the top 10 services. Woyuld you know how I can expand that to top 50, or all services?

FortiDave
FortiDaveAuthor
Explorer
May 9, 2022 12:09 PM UTC

Also, If i wanted this report to have details for say 8-10 rules, separete sections, is that possible?

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT