Skip to main content
FortiDave
Explorer
May 9, 2022
Solved

FAZ Top Services In a Rule

  • May 9, 2022
  • 1 reply
  • 1911 views

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.

 
 
Best answer by Debbie_FTNT

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.

1 reply

Debbie_FTNT
Staff & Editor
Staff & Editor
May 9, 2022

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

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

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