-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnablePolicyName
82 lines (77 loc) · 2.58 KB
/
EnablePolicyName
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Must be done within the CLI in order to enable policyName in the log files on the Fortinet / Fortigate Firewall
----SUMMARY----
login...
config vdom
edit VDOM
config log setting
set log-policy-name enable
end
--------------
----FULL OUTPUT----
FIREWALL # config vdom
FIREWALL (vdom) # edit VDOM
FIREWALL (VDOM) # get log setting
resolve-ip : disable
resolve-port : enable
log-user-in-upper : disable
fwpolicy-implicit-log: enable
fwpolicy6-implicit-log: disable
log-invalid-packet : disable
local-in-allow : enable
local-in-deny-unicast: enable
local-in-deny-broadcast: enable
local-out : enable
neighbor-event : disable
brief-traffic-format: disable
user-anonymize : disable
fortiview-weekly-data: disable
expolicy-implicit-log: disable
log-policy-comment : disable
log-policy-name : disable
custom-log-fields :
FIREWALL (VDOM) # config log [tab]
custom-field Configure custom log fields.
disk Configure disks.
eventfilter Configure log event filters.
fortianalyzer Configure first FortiAnalyzer device.
fortiguard Configure log for FortiCloud.
gui-display Configure how log messages are displayed on the GUI.
memory Configure memory log.
null-device Configure logging for statistics collection for when no external logging destination, such as FortiAnalyzer, is present (data is not saved).
setting Configure general log settings.
syslogd Configure first syslog device.
threat-weight Configure threat weight settings.
FIREWALL (VDOM) # config log setting
FIREWALL (setting) #
FIREWALL (setting) # set log-policy-name
enable Enable inserting policy name into traffic logs.
disable Disable inserting policy name into traffic logs.
FIREWALL (setting) # set log-policy-name enable
FIREWALL (VDOM) # get log setting
resolve-ip : disable
resolve-port : enable
log-user-in-upper : disable
fwpolicy-implicit-log: enable
fwpolicy6-implicit-log: disable
log-invalid-packet : disable
local-in-allow : enable
local-in-deny-unicast: enable
local-in-deny-broadcast: enable
local-out : enable
neighbor-event : disable
brief-traffic-format: disable
user-anonymize : disable
fortiview-weekly-data: disable
expolicy-implicit-log: disable
log-policy-comment : disable
log-policy-name : enable
custom-log-fields :
FIREWALL (VDOM) # show log setting
config log setting
set fwpolicy-implicit-log enable
set local-in-allow enable
set local-in-deny-unicast enable
set local-in-deny-broadcast enable
set local-out enable
set log-policy-name enable
end