Complete the code to enable audit logging in Elasticsearch.
xpack.security.audit.enabled: [1]Setting xpack.security.audit.enabled to true turns on audit logging in Elasticsearch.
Complete the code to specify the audit log output file path.
xpack.security.audit.outputs: ["logfile"] xpack.security.audit.logfile.prefix: [1]
The audit prefix is commonly used to name audit log files clearly.
Fix the error in the audit logging configuration to enable logging of authentication events.
xpack.security.audit.logfile.events.include: [1]The correct event names for authentication issues are access_denied and authentication_failed.
Fill both blanks to configure audit logging to include both authentication and access events.
xpack.security.audit.logfile.events.include: [[1], [2]]
Including "authentication_failed" and "access_denied" ensures audit logs capture key security events.
Fill all three blanks to configure audit logging to output to both logfile and index, and include all events.
xpack.security.audit.enabled: [1] xpack.security.audit.outputs: [[2]] xpack.security.audit.logfile.events.include: [[3]]
Audit logging must be enabled (true), outputs set to both "logfile" and "index", and all events included with "*".