133 lines
5.6 KiB
Plaintext
133 lines
5.6 KiB
Plaintext
[role="xpack"]
|
|
[[auditing-settings]]
|
|
=== Auditing security settings
|
|
++++
|
|
<titleabbrev>Auditing settings</titleabbrev>
|
|
++++
|
|
[[auditing-settings-description]]
|
|
// tag::auditing-settings-description-tag[]
|
|
You configure security auditing settings in the `elasticsearch.yml` configuration file
|
|
on each node in the cluster. For more information, see <<enable-audit-logging>>.
|
|
// end::auditing-settings-description-tag[]
|
|
|
|
[[general-audit-settings]]
|
|
==== General Auditing Settings
|
|
[[xpack-security-audit-enabled]]
|
|
// tag::xpack-security-audit-enabled-tag[]
|
|
`xpack.security.audit.enabled` {ess-icon}::
|
|
Set to `true` to enable auditing on the node. The default value is `false`.
|
|
This puts the auditing events in a dedicated file named `<clustername>_audit.json`
|
|
on each node.
|
|
// end::xpack-security-audit-enabled-tag[]
|
|
|
|
[[event-audit-settings]]
|
|
==== Audited Event Settings
|
|
|
|
The events and some other information about what gets logged can be controlled
|
|
by using the following settings:
|
|
|
|
[[xpack-sa-lf-events-include]]
|
|
// tag::xpack-sa-lf-events-include-tag[]
|
|
`xpack.security.audit.logfile.events.include` {ess-icon}::
|
|
Specifies which events to include in the auditing output. The default value is:
|
|
`access_denied, access_granted, anonymous_access_denied, authentication_failed,
|
|
connection_denied, tampered_request, run_as_denied, run_as_granted`.
|
|
// end::xpack-sa-lf-events-include-tag[]
|
|
|
|
[[xpack-sa-lf-events-exclude]]
|
|
// tag::xpack-sa-lf-events-exclude-tag[]
|
|
`xpack.security.audit.logfile.events.exclude` {ess-icon}::
|
|
Excludes the specified events from the output. By default, no events are
|
|
excluded.
|
|
// end::xpack-sa-lf-events-exclude-tag[]
|
|
|
|
[[xpack-sa-lf-events-emit-request]]
|
|
// tag::xpack-sa-lf-events-emit-request-tag[]
|
|
`xpack.security.audit.logfile.events.emit_request_body` {ess-icon}::
|
|
Specifies whether to include the request body from REST requests on certain
|
|
event types such as `authentication_failed`. The default value is `false`.
|
|
+
|
|
--
|
|
IMPORTANT: No filtering is performed when auditing, so sensitive data may be
|
|
audited in plain text when including the request body in audit events.
|
|
--
|
|
|
|
// end::xpack-sa-lf-events-emit-request-tag[]
|
|
|
|
[[node-audit-settings]]
|
|
==== Local Node Info Settings
|
|
|
|
[[xpack-sa-lf-emit-node-name]]
|
|
// tag::xpack-sa-lf-emit-node-name-tag[]
|
|
`xpack.security.audit.logfile.emit_node_name` {ess-icon}::
|
|
Specifies whether to include the <<node.name,node name>> as a field in
|
|
each audit event. The default value is `false`.
|
|
// end::xpack-sa-lf-emit-node-name-tag[]
|
|
|
|
[[xpack-sa-lf-emit-node-host-address]]
|
|
// tag::xpack-sa-lf-emit-node-host-address-tag[]
|
|
`xpack.security.audit.logfile.emit_node_host_address` {ess-icon}::
|
|
Specifies whether to include the node's IP address as a field in each audit event.
|
|
The default value is `false`.
|
|
// end::xpack-sa-lf-emit-node-host-address-tag[]
|
|
|
|
[[xpack-sa-lf-emit-node-host-name]]
|
|
// tag::xpack-sa-lf-emit-node-host-name-tag[]
|
|
`xpack.security.audit.logfile.emit_node_host_name` {ess-icon}::
|
|
Specifies whether to include the node's host name as a field in each audit event.
|
|
The default value is `false`.
|
|
// end::xpack-sa-lf-emit-node-host-name-tag[]
|
|
|
|
[[xpack-sa-lf-emit-node-id]]
|
|
// tag::xpack-sa-lf-emit-node-id-tag[]
|
|
`xpack.security.audit.logfile.emit_node_id` {ess-icon}::
|
|
Specifies whether to include the node id as a field in each audit event.
|
|
This is available for the new format only. That is to say, this information
|
|
does not exist in the `<clustername>_access.log` file.
|
|
Unlike <<node.name,node name>>, whose value might change if the administrator
|
|
changes the setting in the config file, the node id will persist across cluster
|
|
restarts and the administrator cannot change it.
|
|
The default value is `true`.
|
|
// end::xpack-sa-lf-emit-node-id-tag[]
|
|
|
|
[[audit-event-ignore-policies]]
|
|
==== Audit Logfile Event Ignore Policies
|
|
|
|
These settings affect the <<audit-log-ignore-policy,ignore policies>>
|
|
that enable fine-grained control over which audit events are printed to the log file.
|
|
All of the settings with the same policy name combine to form a single policy.
|
|
If an event matches all of the conditions for a specific policy, it is ignored
|
|
and not printed.
|
|
|
|
[[xpack-sa-lf-events-ignore-users]]
|
|
// tag::xpack-sa-lf-events-ignore-users-tag[]
|
|
`xpack.security.audit.logfile.events.ignore_filters.<policy_name>.users` {ess-icon}::
|
|
A list of user names or wildcards. The specified policy will
|
|
not print audit events for users matching these values.
|
|
// end::xpack-sa-lf-events-ignore-users-tag[]
|
|
|
|
[[xpack-sa-lf-events-ignore-realms]]
|
|
// tag::xpack-sa-lf-events-ignore-realms-tag[]
|
|
`xpack.security.audit.logfile.events.ignore_filters.<policy_name>.realms` {ess-icon}::
|
|
A list of authentication realm names or wildcards. The specified policy will
|
|
not print audit events for users in these realms.
|
|
// end::xpack-sa-lf-events-ignore-realms-tag[]
|
|
|
|
[[xpack-sa-lf-events-ignore-roles]]
|
|
// tag::xpack-sa-lf-events-ignore-roles-tag[]
|
|
`xpack.security.audit.logfile.events.ignore_filters.<policy_name>.roles` {ess-icon}::
|
|
A list of role names or wildcards. The specified policy will
|
|
not print audit events for users that have these roles. If the user has several
|
|
roles, some of which are *not* covered by the policy, the policy will
|
|
*not* cover this event.
|
|
// end::xpack-sa-lf-events-ignore-roles-tag[]
|
|
|
|
[[xpack-sa-lf-events-ignore-indices]]
|
|
// tag::xpack-sa-lf-events-ignore-indices-tag[]
|
|
`xpack.security.audit.logfile.events.ignore_filters.<policy_name>.indices` {ess-icon}::
|
|
A list of index names or wildcards. The specified policy will
|
|
not print audit events when all the indices in the event match
|
|
these values. If the event concerns several indices, some of which are
|
|
*not* covered by the policy, the policy will *not* cover this event.
|
|
// end::xpack-sa-lf-events-ignore-indices-tag[]
|