Skip to main content
MaAtVA
Explorer
Jan 19, 2026 1:31 PM UTC
Question

Traffic data in PostgreSQL

Hello, i have a problem with dataset in Fortianalyzer. When i search traffic logs in Fortianalyzer under "LOG-VIEW" and "Traffic" i get different result than using Dataset Query in Report Definitions.

Are these queries based on different databases / data sources?

I run the following SQL in Dataset definition:

 

SELECT policyid, dstport, proto
FROM
$log-traffic as l
WHERE
$filter
AND policyid = '681'
group by policyid, dstport, proto
order by dstport

but this does not return the same ports like searching in Analyzer Log Traffic view when searching with

 

policyid="681"

 

I selected the device name in both search scenarios, in the drop down fields.

My question, from where does the difference result and should both query types return the same result? 

1 reply

illorenzoditorino
Explorer III
Jan 22, 2026 1:49 AM UTC

@MaAtVA I have seen that running the dataset does not always return correct results. Try using the dataset in chart and chart in a report and see if the results match with what you see in Log View - it should match :)

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024