Skip to main content
nnair
Staff
Staff
Aug 1, 2023 6:00 AM UTC

Technical Tip: Enable audit log via CLI

Description

 

This article describes how to enable the audit log via CLI.

This allows the logging of the CLI commands that were run in CLI by a specific admin user.

 

Scope

 

FortiGate 7.0.2+.

 

Solution

 

Below are the steps to enable the audit log on the CLI:

 

config system global
    set cli-audit-log enable

end

 

image.png

 
To test if the audit logs are working, try a few commands:


show log fortianalyzer setting

    config log fortianalyzer setting

end

image.png

 

Related article:

Technical Tip: FortiGate TACACS+ Accounting messages

    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