log
Use this command to view (list) or clear log messages, or to examine (show) or configure logging queues.
To use this command, your administrator account’s access control profile must have
rw or
w permission to the
loggrp area. For more information, see
“Permissions”.
Syntax
Variable | Description | Default |
log {all | alog | dlog | elog | tlog} | Select which log files to view: • all — All logs. • alog — Attack logs. • dlog — Debug logs. • elog — Event logs. • tlog — Traffic logs. | No default. |
[show | start | stop] | Displays the log messages or specifies a time to start or stop logging. | |
Example
This example sets a time to start the display of log messages, displays log information starting at that time, and stops the display of log messages. The appliance’s responses are displayed in bold.
FortiWeb # dia log all start
start tracking log
FortiWeb # dia log all show
time span starts from 2014-07-31 18:31:53.000000
Total time span is 10.754097 seconds
Time spent on waiting is 10.527346 seconds
Time spent on preprocessing is 0.000000 seconds
event log processed: 0
traffic log processed: 0
attack log processed: 0
FortiWeb # dia log all stop
stop tracking log
Related topics