config : log forti-analyzer
 
log forti-analyzer
Use this command to configure the FortiWeb appliance to send its log messages to a remote FortiAnalyzer appliance.
You must first define one or more FortiAnalyzer policies using config log fortianalyzer-policy.
Logs sent to FortiAnalyzer are controlled by FortiAnalyzer policies and trigger actions that you configure on the FortiWeb appliance, and are associated with various types of violations.
 
Usually, you should set trigger actions for specific types of violations. Failure to do so will result in the FortiWeb appliance logging every occurrence, which could result in high log volume and reduced system performance. Excessive logging for an extended period of time may cause premature hard disk failure.
 
Logs stored remotely cannot be viewed from the web UI, and cannot be used by FortiWeb to build reports. If you require these features, record logs locally as well as remotely.
Syntax
config log forti-analyzer
set fortianalyzer-policy <policy_name>
set severity {alert | critical | debug | emergency | error | information | notification | warning}
set status {enable | disable}
end
Variable
Description
Default
fortianalyzer-policy <policy_name>
Type the name of an existing FortiAnalyzer policy to use when storing log information remotely. The maximum length is 35 characters.
To view a list of the existing FortiAnalyzer policies, type:
set fortianalyzer-policy ?
No default.
status {enable | disable}
Enable to record event log messages to FortiAnalyzer if it meets or exceeds the severity level configured in severity.
disable
severity {alert | critical | debug | emergency | error | information | notification | warning}
Select the severity level that a log message must meet or exceed in order to cause the FortiWeb appliance to save it to FortiAnalyzer.
information
Example
This example enables FortiAnalyzer logging and recording of the log messages. Only the log messages with a severity of error or higher are recorded.
config log forti-analyzer
set status enable
set severity error
end
Related topics
config log fortianalyzer-policy