DescriptionThis article explains how to delete FortiGate log entries stored in memory or local disk.
ScopeThe examples that follow are given for FortiOS 4.0MR1.
SolutionIt
is assumed that memory or local disk logging is enabled on the
FortiGate and other log options enabled (at Protection Profile level
for example).
Please note that those commands are per-VDOM where applicable.
- 1- Example to delete logs from local disk for only WEB Filtering entries (*):
FGT# execute log filter device 0
FGT# execute log filter category 3
FGT# execute log delete
This will delete webfilter log
Do you want to continue? (y/n) y
- 2- Example to delete logs from memory for only WEB Filtering entries (*):
FGT# execute log filter device 1
FGT# execute log filter category 3
FGT# execute log delete
This will delete webfilter log
Do you want to continue? (y/n) y- 3- Example to delete all local logs ( memory and local disk ) :
FGT# execute log delete-all
This will delete all local logs
Do you want to continue? (y/n) y
(*)_Note : To get the device and category list, type the filter command without argument .
FGT#
execute log filter deviceAvailable devices:
0: disk
1: memory
2: faz
4: fds
FGT#
execute log filter categoryAvailable categories:
10: application control
9: dlp
6: content
5: spam
4: ids
3: webfilter
2: virus
1: event
0: traffic
Related Articles
Troubleshooting Tip : Viewing FortiGate log entries from the CLI