Skip to main content
odahy
Staff
Staff
Aug 1, 2023 9:12 AM UTC

Technical Tip: Display more log lines through CLI

  • Apr 16, 2026 1:24 PM UTC
  • 0 replies
  • 2649 views
  • Translate All
Description This article describes how to display more log lines through CLI.
Scope FortiOS.
Solution

In order to view logs on CLI, run the following command:

 

execute log display

 

However, the logs shown are usually restricted to only 10 lines.

 

If it is needed to view more lines or query more lines on CLI the following command can be set:

 

execute log filter view-lines <number>  -> Number of lines to view (5 - 1000).

 

Choose the desired number between 5-1000 viewed lines.

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