log4j2.properties 966 B

123456789101112131415
  1. appender.audit_rolling.type = RollingFile
  2. appender.audit_rolling.name = audit_rolling
  3. appender.audit_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access.log
  4. appender.audit_rolling.layout.type = PatternLayout
  5. appender.audit_rolling.layout.pattern = [%d{ISO8601}] %m%n
  6. appender.audit_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access-%d{yyyy-MM-dd}.log
  7. appender.audit_rolling.policies.type = Policies
  8. appender.audit_rolling.policies.time.type = TimeBasedTriggeringPolicy
  9. appender.audit_rolling.policies.time.interval = 1
  10. appender.audit_rolling.policies.time.modulate = true
  11. logger.xpack_security_audit_logfile.name = org.elasticsearch.xpack.security.audit.logfile.LoggingAuditTrail
  12. logger.xpack_security_audit_logfile.level = info
  13. logger.xpack_security_audit_logfile.appenderRef.audit_rolling.ref = audit_rolling
  14. logger.xpack_security_audit_logfile.additivity = false