enable-audit-logging.asciidoc 1001 B

123456789101112131415161718192021222324
  1. [role="xpack"]
  2. [[enable-audit-logging]]
  3. == Enabling audit logging
  4. You can log security-related events such as authentication failures and refused connections
  5. to monitor your cluster for suspicious activity.
  6. Audit logging also provides forensic evidence in the event of an attack.
  7. [IMPORTANT]
  8. ============================================================================
  9. Audit logs are **disabled** by default. You must explicitly enable audit logging.
  10. ============================================================================
  11. To enable enable audit logging:
  12. . Set `xpack.security.audit.enabled` to `true` in `elasticsearch.yml`.
  13. . Restart {es}.
  14. When audit logging is enabled, <<audit-event-types, security events>> are persisted to
  15. a dedicated `<clustername>_audit.json` file on the host's file system (on each node).
  16. You can configure additional options to control what events are logged and
  17. what information is included in the audit log.
  18. For more information, see <<auditing-settings>>.