Hi guys,
Currently my fortigates are connecting to a fortianalyzer. All logs from fortigate will be sent to this fortianalyzer.
What I want to know is how can I analyze or generate a report for a specific policies at a specific date and time?
If possible with a specific user also?
Thank you in advance
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.
You can create pretty much whatever you want to. You'll need to be prepared to write some SQL queries though.
Richie
NSE7
So how to write it?
Hi,
try to be more specific telling us what kind of report do you want to create (fields and so on).
I want a report that read from a specific policy. In that report I want to know the sources, destinations, time, ports(allow/block), and users of that connections
SELECT from_dtime(`dtime`) AS "Time", COALESCE(NULLIFNA(`user`), IPSTR(`srcip`)) AS "User/IP", srcip AS "Source IP", dstip AS "Destination IP", proto AS "Protocol", dstport AS "Destination Port", action AS "Action", policyid AS "Policy ID" FROM $log WHERE $filter
May I know where and how to write this code?is there any sample I can follow?
Tab "Report", scroll down on the left, "Advanced", "Dataset" then in the upper side "Create New".
Paste that code, give the dataset a name, choose "Traffic" in the menu and save.
Then go to "Chart Library" and "Create New".
Give the Chart a name, select the Dataset that you've saved, add all the culumns and save.
Then add that chart to the Layout of a Report and you're done.
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 |
---|---|
1713 | |
1093 | |
752 | |
447 | |
231 |
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.