FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
btey
Staff
Staff
Article Id 220642
Description

This article describe the method to generate log test from FortiGate.

 

The log test is useful to verify the logging status.

Customize log test detail could allow the user to generate the description for log identification.

Scope FortiGate log.
Solution

CLI command:

 

# diagnose log test-text <log-id> <level> <text-log> [<repeat>]

 

Sample:

 

# diagnose log test-text "0100020014" "critical" "" 5

 

Output:

 

LogTest_1.PNG

 

Customize the log description, source IP, policy ID field and etc as below:

 

# diagnose log test-text "0100020014" "critical" "policyid=999 sessionid=99999 srcip=192.168.1.1 srcport=59999 logdesc=\"For log test only\"" 5

Output:

 

LogTest_2.PNG

Contributors