Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/reference/settings/audit-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ file. For more information, see
`xpack.security.audit.enabled`::
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.log`
on each node.
+
For more information, see <<configuring-logging-levels>>.
on each node. For more information, see <<configuring-logging-levels>>.

[[event-audit-settings]]
==== Audited Event Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ Collection<Object> createComponents(Client client, ThreadPool threadPool, Cluste
components.add(securityContext.get());

// audit trail service construction
final List<AuditTrail> auditTrails = XPackSettings.AUDIT_ENABLED.get(settings) ?
Collections.singletonList(new LoggingAuditTrail(settings, clusterService, threadPool)) :
Collections.emptyList();
final List<AuditTrail> auditTrails = XPackSettings.AUDIT_ENABLED.get(settings)
? Collections.singletonList(new LoggingAuditTrail(settings, clusterService, threadPool))
: Collections.emptyList();
if (XPackSettings.AUDIT_ENABLED.get(settings)) {
// the only audit trail is the logfile
auditTrails.add(new LoggingAuditTrail(settings, clusterService, threadPool));
Expand Down