config : log event-log
 
log event-log
Use this command to configure recording of event log messages, and then use other commands to store those messages on the local FortiWeb disk, in local FortiWeb memory, or both. Use other commands to configure a traffic log and attack log.
 
You must enable disk and/or memory log storage and select log severity levels before FortiWeb will store any event logs.
Syntax
config log event-log
set status {enable | disable}
set threshold {50 | 60 | 70 | 80 | 90}
set cpu-high <percentage_int>
set mem-high <percentage_int>
set trigger-policy <trigger-policy_name>
end
Variable
Description
Default
status {enable | disable}
Enable to record event log messages.
To select the destination and the severity threshold of the stored log messages, used either the config log disk or the config log memory command.
enable
threshold {50 | 60 | 70 | 80 | 90}
Select a threshold level as a percentage that will trigger an event log when the actual number of persistent server sessions reaches the defined percentage of the total number of persistent server sessions allowed for the FortiWeb appliance.
50
cpu-high <percentage_int>
Type a threshold level as a percentage beyond which CPU usage will trigger an event log entry.
The valid range is from 60 to 99 percent.
60
mem-high <percentage_int>
Type a threshold level as a percentage beyond which memory usage will trigger an event log entry.
The valid range is from 60 to 99 percent.
60
trigger-policy <trigger-policy_name>
Type the name of the trigger to apply when the CPU, memory, or number of sessions meets or exceeds the threshold (see “config log trigger-policy”). The maximum length is 35 characters.
To display the list of existing trigger policies, type:
set trigger ?
No default.
Example
This example enables recording of event logs, enables disk log storage and memory log storage, and sets alert as the minimum severity level that a log message must achieve for storage.
config log disk
set status enable
set severity alert
end
config log memory
set status enable
set severity alert
end
config log event-log
set status enable
end
Related topics
config log disk
config log memory
config log attack-log
config log traffic-log
diagnose debug application miglogd
diagnose log