Skip to main content
echia
Staff
Staff
April 22, 2021

Technical Tip: How to generate FortiGuard license expiration warning logs

  • April 22, 2021
  • 0 replies
  • 7557 views

Description

 

This article describes how to generate warning logs for an expiring FortiGuard license.

 

Scope


FortiGate.


Solution

 

config alertemail setting
set FDS-license-expiring-warning enable
set FDS-license-expiring-days 30
end
 
 
FortiGate will check the license expiration every midnight (00:00:00) .
Warning logs will be generated if the expiration days left are less than or equal to the set value in the command 'FDS-license-expiring-days'. 
 
Note:
Since v7.4.x the 'set FDS-license-expiring-days' command was move to "config system fortiguard" like below:
 
config system fortiguard
    set FDS-license-expiring-days <integer>
 

See the below document for more information:

config system fortiguard 

 

Sample logs:
 
date=2021-04-17 time=00:00:00 eventtime=1618642800235396673 tz="-0700" logid="0100020102" type="event" subtype="system" level="warning" vd="root" logdesc="FortiGuard antispam license expiring" msg="FortiGuard anti-spam license will expire in 27 day(s)"
 
date=2021-04-17 time=00:00:00 eventtime=1618642800235394536 tz="-0700" logid="0100020101" type="event" subtype="system" level="warning" vd="root" logdesc="FortiGuard web filter license expiring" msg="FortiGuard web filtering license will expire in 27 day(s)"
 
date=2021-04-17 time=00:00:00 eventtime=1618642800235383611 tz="-0700" logid="0100020104" type="event" subtype="system" level="warning" vd="root" logdesc="FortiGuard IPS license expiring" msg="FortiGuard Industrial IPS update license will expire in 27 day(s)"
 
date=2021-04-17 time=00:00:00 eventtime=1618642800235372391 tz="-0700" logid="0100020104" type="event" subtype="system" level="warning" vd="root" logdesc="FortiGuard IPS license expiring" msg="FortiGuard IPS update license will expire in 27 day(s)"
 
date=2021-04-17 time=00:00:00 eventtime=1618642800230035225 tz="-0700" logid="0100020103" type="event" subtype="system" level="warning" vd="root" logdesc="FortiGuard antivirus license expiring" msg="FortiGuard AV update license will expire in 27 day(s)"
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.