Description
This article explains how to delete FortiGate log entries stored in memory or local disk.
Scope
The examples that follow are given for FortiOS 5.4, 5.6, 6.0 and 6.2.
Solution
It 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 memory for only utm-webfilter entries (*):
This article explains how to delete FortiGate log entries stored in memory or local disk.
Scope
The examples that follow are given for FortiOS 5.4, 5.6, 6.0 and 6.2.
Solution
It 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 memory for only utm-webfilter entries (*):
# execute log filter device 0
# execute log filter category 3
# execute log delete
This will delete memory traffic logs and all associated UTM logs.2) Example to delete logs from Disk for only utm-webfilter entries (*):
Do you want to continue? (y/n) y
# execute log filter device 1
# execute log filter category 3
# execute log delete
This will delete disk traffic logs and all associated UTM logs.3) Example to delete all local logs (memory and local disk) :
Do you want to continue? (y/n) y
# 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 .# execute log filter deviceAvailable devices:
0: memory
1: disk
2: fortianalyzer
3: forticloud# execute log filter categoryAvailable categories:
0: traffic
1: event
2: utm-virus
3: utm-webfilter
4: utm-ips
5: utm-emailfilter
7: utm-anomaly
8: utm-voip
9: utm-dlp
10: utm-app-ctrl
12: utm-waf
14: gtp
15: dns
16: utm-sshRelated Articles
Technical Tip : How to delete FortiGate log entries stored in memory or local disk
Labels: