Skip to Content

Solved: How do I customize log test detail?

This article describes the method to generate log test from FortiGate. The log test is useful to verify the logging status. Customizing log test detail could allow the user to generate the description for log identification.

Solution

CLI command:

# diagnose log test-text <log-id> <level> <text-log> [<repeat>]

Sample:

# diagnose log test-text "0100020014" "critical" "" 5

Output:

Customizing log test detail could allow the user to generate the description for log identification.

Customize the log description, source IP, policy ID field and etc as below:

# diagnose log test-text "0100020014" "critical" "policyid=999 sessionid=99999 srcip=192.168.1.1 srcport=59999 logdesc=\"For log test only\"" 5

Output:

Customize the log description, source IP, policy ID field and etc.

Tags

Tags

    Ads Blocker Image Powered by Code Help Pro

    Ads Blocker Detected!!!

    This site depends on revenue from ad impressions to survive. If you find this site valuable, please consider disabling your ad blocker.