Skip to main content
nnair
Staff
Staff
August 1, 2023

Technical Tip: Enable audit log via CLI

  • August 1, 2023
  • 0 replies
  • 9005 views

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

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!