Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

log4j2.properties 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. status = error
  2. # log action execution errors for easier debugging
  3. logger.action.name = org.elasticsearch.action
  4. logger.action.level = debug
  5. appender.console.type = Console
  6. appender.console.name = console
  7. appender.console.layout.type = PatternLayout
  8. appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n
  9. appender.rolling.type = RollingFile
  10. appender.rolling.name = rolling
  11. appender.rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}.log
  12. appender.rolling.layout.type = PatternLayout
  13. appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %.-10000m%n
  14. appender.rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}-%i.log.gz
  15. appender.rolling.policies.type = Policies
  16. appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
  17. appender.rolling.policies.time.interval = 1
  18. appender.rolling.policies.time.modulate = true
  19. appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
  20. appender.rolling.policies.size.size = 128MB
  21. appender.rolling.strategy.type = DefaultRolloverStrategy
  22. appender.rolling.strategy.fileIndex = nomax
  23. appender.rolling.strategy.action.type = Delete
  24. appender.rolling.strategy.action.basepath = ${sys:es.logs.base_path}
  25. appender.rolling.strategy.action.condition.type = IfFileName
  26. appender.rolling.strategy.action.condition.glob = ${sys:es.logs.cluster_name}-*
  27. appender.rolling.strategy.action.condition.nested_condition.type = IfAccumulatedFileSize
  28. appender.rolling.strategy.action.condition.nested_condition.exceeds = 2GB
  29. rootLogger.level = info
  30. rootLogger.appenderRef.console.ref = console
  31. rootLogger.appenderRef.rolling.ref = rolling
  32. appender.deprecation_rolling.type = RollingFile
  33. appender.deprecation_rolling.name = deprecation_rolling
  34. appender.deprecation_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.log
  35. appender.deprecation_rolling.layout.type = PatternLayout
  36. appender.deprecation_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %.-10000m%n
  37. appender.deprecation_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation-%i.log.gz
  38. appender.deprecation_rolling.policies.type = Policies
  39. appender.deprecation_rolling.policies.size.type = SizeBasedTriggeringPolicy
  40. appender.deprecation_rolling.policies.size.size = 1GB
  41. appender.deprecation_rolling.strategy.type = DefaultRolloverStrategy
  42. appender.deprecation_rolling.strategy.max = 4
  43. logger.deprecation.name = org.elasticsearch.deprecation
  44. logger.deprecation.level = warn
  45. logger.deprecation.appenderRef.deprecation_rolling.ref = deprecation_rolling
  46. logger.deprecation.additivity = false
  47. appender.index_search_slowlog_rolling.type = RollingFile
  48. appender.index_search_slowlog_rolling.name = index_search_slowlog_rolling
  49. appender.index_search_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_search_slowlog.log
  50. appender.index_search_slowlog_rolling.layout.type = PatternLayout
  51. appender.index_search_slowlog_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] [%node_name]%marker %.-10000m%n
  52. appender.index_search_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_search_slowlog-%d{yyyy-MM-dd}.log
  53. appender.index_search_slowlog_rolling.policies.type = Policies
  54. appender.index_search_slowlog_rolling.policies.time.type = TimeBasedTriggeringPolicy
  55. appender.index_search_slowlog_rolling.policies.time.interval = 1
  56. appender.index_search_slowlog_rolling.policies.time.modulate = true
  57. logger.index_search_slowlog_rolling.name = index.search.slowlog
  58. logger.index_search_slowlog_rolling.level = trace
  59. logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling.ref = index_search_slowlog_rolling
  60. logger.index_search_slowlog_rolling.additivity = false
  61. appender.index_indexing_slowlog_rolling.type = RollingFile
  62. appender.index_indexing_slowlog_rolling.name = index_indexing_slowlog_rolling
  63. appender.index_indexing_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_indexing_slowlog.log
  64. appender.index_indexing_slowlog_rolling.layout.type = PatternLayout
  65. appender.index_indexing_slowlog_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] [%node_name]%marker %.-10000m%n
  66. appender.index_indexing_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_indexing_slowlog-%d{yyyy-MM-dd}.log
  67. appender.index_indexing_slowlog_rolling.policies.type = Policies
  68. appender.index_indexing_slowlog_rolling.policies.time.type = TimeBasedTriggeringPolicy
  69. appender.index_indexing_slowlog_rolling.policies.time.interval = 1
  70. appender.index_indexing_slowlog_rolling.policies.time.modulate = true
  71. logger.index_indexing_slowlog.name = index.indexing.slowlog.index
  72. logger.index_indexing_slowlog.level = trace
  73. logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref = index_indexing_slowlog_rolling
  74. logger.index_indexing_slowlog.additivity = false
  75. appender.audit_rolling.type = RollingFile
  76. appender.audit_rolling.name = audit_rolling
  77. appender.audit_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_audit.log
  78. appender.audit_rolling.layout.type = PatternLayout
  79. appender.audit_rolling.layout.pattern = {\
  80. "@timestamp":"%d{ISO8601}"\
  81. %varsNotEmpty{, "node.name":"%enc{%map{node.name}}{JSON}"}\
  82. %varsNotEmpty{, "node.id":"%enc{%map{node.id}}{JSON}"}\
  83. %varsNotEmpty{, "host.name":"%enc{%map{host.name}}{JSON}"}\
  84. %varsNotEmpty{, "host.ip":"%enc{%map{host.ip}}{JSON}"}\
  85. %varsNotEmpty{, "event.type":"%enc{%map{event.type}}{JSON}"}\
  86. %varsNotEmpty{, "event.action":"%enc{%map{event.action}}{JSON}"}\
  87. %varsNotEmpty{, "user.name":"%enc{%map{user.name}}{JSON}"}\
  88. %varsNotEmpty{, "user.run_by.name":"%enc{%map{user.run_by.name}}{JSON}"}\
  89. %varsNotEmpty{, "user.run_as.name":"%enc{%map{user.run_as.name}}{JSON}"}\
  90. %varsNotEmpty{, "user.realm":"%enc{%map{user.realm}}{JSON}"}\
  91. %varsNotEmpty{, "user.run_by.realm":"%enc{%map{user.run_by.realm}}{JSON}"}\
  92. %varsNotEmpty{, "user.run_as.realm":"%enc{%map{user.run_as.realm}}{JSON}"}\
  93. %varsNotEmpty{, "user.roles":%map{user.roles}}\
  94. %varsNotEmpty{, "origin.type":"%enc{%map{origin.type}}{JSON}"}\
  95. %varsNotEmpty{, "origin.address":"%enc{%map{origin.address}}{JSON}"}\
  96. %varsNotEmpty{, "realm":"%enc{%map{realm}}{JSON}"}\
  97. %varsNotEmpty{, "url.path":"%enc{%map{url.path}}{JSON}"}\
  98. %varsNotEmpty{, "url.query":"%enc{%map{url.query}}{JSON}"}\
  99. %varsNotEmpty{, "request.method":"%enc{%map{request.method}}{JSON}"}\
  100. %varsNotEmpty{, "request.body":"%enc{%map{request.body}}{JSON}"}\
  101. %varsNotEmpty{, "request.id":"%enc{%map{request.id}}{JSON}"}\
  102. %varsNotEmpty{, "action":"%enc{%map{action}}{JSON}"}\
  103. %varsNotEmpty{, "request.name":"%enc{%map{request.name}}{JSON}"}\
  104. %varsNotEmpty{, "indices":%map{indices}}\
  105. %varsNotEmpty{, "opaque_id":"%enc{%map{opaque_id}}{JSON}"}\
  106. %varsNotEmpty{, "x_forwarded_for":"%enc{%map{x_forwarded_for}}{JSON}"}\
  107. %varsNotEmpty{, "transport.profile":"%enc{%map{transport.profile}}{JSON}"}\
  108. %varsNotEmpty{, "rule":"%enc{%map{rule}}{JSON}"}\
  109. %varsNotEmpty{, "event.category":"%enc{%map{event.category}}{JSON}"}\
  110. }%n
  111. # "node.name" node name from the `elasticsearch.yml` settings
  112. # "node.id" node id which should not change between cluster restarts
  113. # "host.name" unresolved hostname of the local node
  114. # "host.ip" the local bound ip (i.e. the ip listening for connections)
  115. # "event.type" a received REST request is translated into one or more transport requests. This indicates which processing layer generated the event "rest" or "transport" (internal)
  116. # "event.action" the name of the audited event, eg. "authentication_failed", "access_granted", "run_as_granted", etc.
  117. # "user.name" the subject name as authenticated by a realm
  118. # "user.run_by.name" the original authenticated subject name that is impersonating another one.
  119. # "user.run_as.name" if this "event.action" is of a run_as type, this is the subject name to be impersonated as.
  120. # "user.realm" the name of the realm that authenticated "user.name"
  121. # "user.run_by.realm" the realm name of the impersonating subject ("user.run_by.name")
  122. # "user.run_as.realm" if this "event.action" is of a run_as type, this is the realm name the impersonated user is looked up from
  123. # "user.roles" the roles array of the user; these are the roles that are granting privileges
  124. # "origin.type" it is "rest" if the event is originating (is in relation to) a REST request; possible other values are "transport" and "ip_filter"
  125. # "origin.address" the remote address and port of the first network hop, i.e. a REST proxy or another cluster node
  126. # "realm" name of a realm that has generated an "authentication_failed" or an "authentication_successful"; the subject is not yet authenticated
  127. # "url.path" the URI component between the port and the query string; it is percent (URL) encoded
  128. # "url.query" the URI component after the path and before the fragment; it is percent (URL) encoded
  129. # "request.method" the method of the HTTP request, i.e. one of GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH, TRACE, CONNECT
  130. # "request.body" the content of the request body entity, JSON escaped
  131. # "request.id" a synthentic identifier for the incoming request, this is unique per incoming request, and consistent across all audit events generated by that request
  132. # "action" an action is the most granular operation that is authorized and this identifies it in a namespaced way (internal)
  133. # "request.name" if the event is in connection to a transport message this is the name of the request class, similar to how rest requests are identified by the url path (internal)
  134. # "indices" the array of indices that the "action" is acting upon
  135. # "opaque_id" opaque value conveyed by the "X-Opaque-Id" request header
  136. # "x_forwarded_for" the addresses from the "X-Forwarded-For" request header, as a verbatim string value (not an array)
  137. # "transport.profile" name of the transport profile in case this is a "connection_granted" or "connection_denied" event
  138. # "rule" name of the applied rulee if the "origin.type" is "ip_filter"
  139. # "event.category" fixed value "elasticsearch-audit"
  140. appender.audit_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_audit-%d{yyyy-MM-dd}.log
  141. appender.audit_rolling.policies.type = Policies
  142. appender.audit_rolling.policies.time.type = TimeBasedTriggeringPolicy
  143. appender.audit_rolling.policies.time.interval = 1
  144. appender.audit_rolling.policies.time.modulate = true
  145. appender.deprecated_audit_rolling.type = RollingFile
  146. appender.deprecated_audit_rolling.name = deprecated_audit_rolling
  147. appender.deprecated_audit_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access.log
  148. appender.deprecated_audit_rolling.layout.type = PatternLayout
  149. appender.deprecated_audit_rolling.layout.pattern = [%d{ISO8601}] %m%n
  150. appender.deprecated_audit_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access-%d{yyyy-MM-dd}.log
  151. appender.deprecated_audit_rolling.policies.type = Policies
  152. appender.deprecated_audit_rolling.policies.time.type = TimeBasedTriggeringPolicy
  153. appender.deprecated_audit_rolling.policies.time.interval = 1
  154. appender.deprecated_audit_rolling.policies.time.modulate = true
  155. logger.xpack_security_audit_logfile.name = org.elasticsearch.xpack.security.audit.logfile.LoggingAuditTrail
  156. logger.xpack_security_audit_logfile.level = info
  157. logger.xpack_security_audit_logfile.appenderRef.audit_rolling.ref = audit_rolling
  158. logger.xpack_security_audit_logfile.additivity = false
  159. logger.xpack_security_audit_deprecated_logfile.name = org.elasticsearch.xpack.security.audit.logfile.DeprecatedLoggingAuditTrail
  160. # set this to "off" instead of "info" to disable the deprecated appender
  161. # in the 6.x releases both the new and the previous appenders are enabled
  162. # for the logfile auditing
  163. logger.xpack_security_audit_deprecated_logfile.level = info
  164. logger.xpack_security_audit_deprecated_logfile.appenderRef.deprecated_audit_rolling.ref = deprecated_audit_rolling
  165. logger.xpack_security_audit_deprecated_logfile.additivity = false
  166. logger.xmlsig.name = org.apache.xml.security.signature.XMLSignature
  167. logger.xmlsig.level = error
  168. logger.samlxml_decrypt.name = org.opensaml.xmlsec.encryption.support.Decrypter
  169. logger.samlxml_decrypt.level = fatal
  170. logger.saml2_decrypt.name = org.opensaml.saml.saml2.encryption.Decrypter
  171. logger.saml2_decrypt.level = fatal