I have fortianalyzer D200 v5.2.1 i have the below dataset i need to edit it to sum the total bandwidth per user,
select from_dtime(dtime) as timestamp, catdesc, hostname as website,srcip as SourceIP, sum(bandwidth) as bandwidth from (###(select dtime, catdesc, hostname,srcip, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log-traffic where $filter and hostname is not null and logid_to_int(logid) not in (4, 7, 14) and utmevent in ('webfilter', 'banned-word', 'web-content', 'command-block', ' scrip-filter') group by dtime, catdesc, hostname,srcip order by dtime desc)### union all ###(select dtime, catdesc, hostname, srcip, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log-webfilter where $filter and hostname is not null and (eventtype is null or logver=52) group by dtime, catdesc, hostname, srcip order by dtime desc)###) t group by dtime, catdesc, website, SourceIP order by dtime desc
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Please do not include "dtime, catdesc, hostname" in your query if you need total bandwidth. Your query should be:
select srcip as SourceIP, sum(bandwidth) as bandwidth from (###(select srcip, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log-traffic where $filter and logid_to_int(logid) not in (4, 7, 14) and utmevent in ('webfilter', 'banned-word', 'web-content', 'command-block', ' scrip-filter') group by srcip order by bandwidth desc)### union all ###(select srcip, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log-webfilter where $filter and (eventtype is null or logver=52) group by srcip)###) t group by SourceIP order by bandwidth desc
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1733 | |
1106 | |
752 | |
447 | |
240 |
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 2024 Fortinet, Inc. All Rights Reserved.