@@ -18,10 +18,18 @@ Set to `true` to enable auditing on the node. The default value is `false`.
18
18
`xpack.security.audit.outputs`::
19
19
Specifies where audit logs are output. For example: `[ index, logfile ]`. The
20
20
default value is `logfile`, which puts the auditing events in a dedicated
21
- `<clustername>_access.log` file on the node. You can also specify `index`, which
22
- puts the auditing events in an {es} index that is prefixed with
23
- `.security_audit_log`. The index can reside on the same cluster or a separate
24
- cluster.
21
+ file named `<clustername>_audit.log` on each node.
22
+ You can also specify `index`, which puts the auditing events in an {es} index
23
+ that is prefixed with `.security_audit_log`. The index can reside on the same
24
+ cluster or a separate cluster.
25
+
26
+ For backwards compatibility reasons, if you use the logfile output type, a
27
+ `<clustername>_access.log` file is also created. It contains the same
28
+ information, but it uses the older (pre-6.5.0) formatting style.
29
+ If the backwards compatible format is not required, it should be disabled.
30
+ To do that, change its logger level to `off` in the `log4j2.properties` file.
31
+ For more information, see <<configuring-logging-levels>>.
32
+
25
33
+
26
34
--
27
35
TIP: If the index is unavailable, it is possible for auditing events to
@@ -57,17 +65,27 @@ audited in plain text when including the request body in audit events.
57
65
[[node-audit-settings]]
58
66
==== Local Node Info Settings
59
67
60
- `xpack.security.audit.logfile.prefix.emit_node_name`::
61
- Specifies whether to include the node's name in the local node info. The
62
- default value is `true`.
63
-
64
- `xpack.security.audit.logfile.prefix.emit_node_host_address`::
65
- Specifies whether to include the node's IP address in the local node info. The
66
- default value is `false`.
67
-
68
- `xpack.security.audit.logfile.prefix.emit_node_host_name`::
69
- Specifies whether to include the node's host name in the local node info. The
70
- default value is `false`.
68
+ `xpack.security.audit.logfile.emit_node_name`::
69
+ Specifies whether to include the <<node.name,node name>> as a field in
70
+ each audit event.
71
+ The default value is `true`.
72
+
73
+ `xpack.security.audit.logfile.emit_node_host_address`::
74
+ Specifies whether to include the node's IP address as a field in each audit event.
75
+ The default value is `false`.
76
+
77
+ `xpack.security.audit.logfile.emit_node_host_name`::
78
+ Specifies whether to include the node's host name as a field in each audit event.
79
+ The default value is `false`.
80
+
81
+ `xpack.security.audit.logfile.emit_node_id`::
82
+ Specifies whether to include the node id as a field in each audit event.
83
+ This is available for the new format only. That is to say, this information
84
+ does not exist in the `<clustername>_access.log` file.
85
+ Unlike <<node.name,node name>>, whose value might change if the administrator
86
+ changes the setting in the config file, the node id will persist across cluster
87
+ restarts and the administrator cannot change it.
88
+ The default value is `true`.
71
89
72
90
[[index-audit-settings]]
73
91
==== Audit Log Indexing Configuration Settings
0 commit comments