| 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. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.