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

FAZ report: Bandwidth to specific tcp port

Hi, 

Has anyone tried creating sql query to check bandwidth to specific destination tcp port?

1 REPLY 1
AEK
SuperUser
SuperUser

Hi Joseppo

I tried it with chart builder and it seems working fine. You can see the aggregated sent/received bytes for each destination port.

by_dstport.png


SQL:

select `dstport`, string_agg(distinct `app`, ' ') as `app__agg_`, string_agg(distinct `user`, ' ') as `user__agg_`, string_agg(distinct ipstr(`dstip`), ' ') as `dstip__agg_`, string_agg(distinct `service`, ' ') as `service__agg_`, sum(sentbyte) as `sentbyte`, sum(rcvdbyte) as `rcvdbyte` from ###(select `dstport`, `app`, `user`, `dstip`, `service`, sum(sentbyte) as sentbyte, sum(rcvdbyte) as rcvdbyte from $log where $filter and (logflag&1>0) group by `dstport`, `app`, `user`, `dstip`, `service` order by `dstport`)### t group by `dstport` order by `dstport`

Hope it helps.

AEK
AEK
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors