I'm using this dataset to retrieve browsing time per application, in which I need to know exactly the browsing time per certain application, I noticed that for some applications the browsing time is zero, however they are used for a period of time and the traffic is more than zero! note that for majority of them they are interanlly used applications to communciate wioth internal servers (SSH, LDAP, SAMBA, ...). what do I need to edit the query to retrieve the browsing time?
====================================================================================
SELECT app, ebtr_value(ebtr_agg_flat(browsetime), NULL, $timespan) AS browsetime, sum(bandwidth) AS bandwidth, sum(traffic_in) AS traffic_in, sum(traffic_out) AS traffic_out FROM ###( SELECT app, ebtr_agg_flat(browsetime) AS browsetime, sum(bandwidth) AS bandwidth, sum(traffic_in) AS traffic_in, sum(traffic_out) AS traffic_out FROM ( SELECT app, ebtr_agg_flat($browse_time) AS browsetime, sum(COALESCE(sentbyte, 0) + COALESCE(rcvdbyte, 0)) AS bandwidth, sum(COALESCE(rcvdbyte, 0)) AS traffic_in, sum(COALESCE(sentbyte, 0)) AS traffic_out FROM $log-traffic WHERE $filter AND (logflag & 1 > 0) AND app IS NOT NULL GROUP BY app ) t GROUP BY app /*SkipSTART*/ ORDER BY ebtr_value(ebtr_agg_flat(browsetime), NULL, NULL) DESC /*SkipEND*/ )### t GROUP BY app ORDER BY browsetime 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.
Browsing time is calculated as a sum of ebtime , could you please download the raw log for the specific application and check if there is non-zero ebtime value? If the value is zero, then it is not a fortianalyzer query issue. If the values are non-zero we can try modifying the query.
Thank you for the quick responce, I download the log for that specific application (SQL-NAVIGATOR) and found that ebtime is unavailable at all in the report (even with zero value), while I download for another application (Microsoft.Outlook.Office.365) in which ebtime is available and have value. see attached screenshot. I wonder if we can modify the query to calculate ebtime as duration is available in raw data.
I think your query is correct, thats why the browsing time is appearing for the applications with valid ebtime. If the ebtime value is not present, it is taken as zero.
Please correct me if I misunderstood your question.
Thank you but I need to have the browsing time for these applications in my report, what do I need to do to update ebtime based on duration value?
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 |
---|---|
1680 | |
1086 | |
752 | |
446 | |
226 |
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.