Skip to main content
Ernie
Explorer II
January 27, 2025
Solved

Dataset: query license details

  • January 27, 2025
  • 2 replies
  • 838 views

Hi Community,

 

In FortiAnalyzer: is it possible to generate a report that shows me license information from for example FortiGate using a custom dataset? Info like "about to expire licenses" from all FortiGate devices.

 

Also things like you can get from "diagnose autoupdate ver", for example "Last Updated":

 

<snip>

Flow-based Virus Definitions
---------
Version: 93.00577 signed
Contract Expiry Date: Sun Dec 28 2025
Last Updated using scheduled update on Mon Jan 27 17:12:27 2025
Last Update Attempt: Mon Jan 27 17:42:10 2025
Result: No Updates

<snip>

Best answer by AEK

Hi Ernie

You can go to Log View > FortiGate > Event > System, then filter on the desired message, like Message = *update*, or Log Description = *license* (you can filter by right click on the related message), then on the tools menu (top-right), click Chart Builder and make your own chart, then use it in your report.

Hope it helps.

2 replies

AEK
SuperUser
AEKAnswer
SuperUser
January 27, 2025

Hi Ernie

You can go to Log View > FortiGate > Event > System, then filter on the desired message, like Message = *update*, or Log Description = *license* (you can filter by right click on the related message), then on the tools menu (top-right), click Chart Builder and make your own chart, then use it in your report.

Hope it helps.

AEK
Ernie
ErnieAuthor
Explorer II
January 28, 2025

Hi AEK,

 

Excellent, thanks! That's a very good approach on getting the actual SQL query! :)

 

I do get some "SQL query is forbidden." in certain queries, not sure why. For example my query in Chart Builder is:

select `level`, `devid`, `devname` from $log where $filter and ( ( ( lower(trim(`msg`)) = lower('FortiSandbox AV database updated'))))

 

Update: In Log View I entered: msg="FortiSandbox AV database updated"

Update 2: Seems to be version related, a newer version didn't have this issue. 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!