Skip to main content
smkml
Staff
Staff
April 30, 2025

Troubleshooting Tip: Print debug logs from CLI

  • April 30, 2025
  • 0 replies
  • 266 views
Description

 

This article describes how to use Print debug logs from the CLI.

 

Scope

 

FortiPortal v7.2.6 and v7.4.1 and above.

 

Solution

 

The below command is introduced to print out the debug logs on later versions using CLI, where the timestamp is also included. 

 

execute log-debug-print

 

Sample result in v7.4.1:

 

debug output in cli.png

 

This command performs the same action as exporting system logs through the GUI System -> Settings -> General -> System Logs and can be used to collect debugs when GUI access is unavailable.

 

fpc.jpg