jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

280 lines
19 KiB

1 year ago
  1. status = error
  2. appender.console.type = Console
  3. appender.console.name = console
  4. appender.console.layout.type = PatternLayout
  5. appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n
  6. ######## Server JSON ############################
  7. appender.rolling.type = RollingFile
  8. appender.rolling.name = rolling
  9. appender.rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_server.json
  10. appender.rolling.layout.type = ESJsonLayout
  11. appender.rolling.layout.type_name = server
  12. appender.rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}-%i.json.gz
  13. appender.rolling.policies.type = Policies
  14. appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
  15. appender.rolling.policies.time.interval = 1
  16. appender.rolling.policies.time.modulate = true
  17. appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
  18. appender.rolling.policies.size.size = 128MB
  19. appender.rolling.strategy.type = DefaultRolloverStrategy
  20. appender.rolling.strategy.fileIndex = nomax
  21. appender.rolling.strategy.action.type = Delete
  22. appender.rolling.strategy.action.basepath = ${sys:es.logs.base_path}
  23. appender.rolling.strategy.action.condition.type = IfFileName
  24. appender.rolling.strategy.action.condition.glob = ${sys:es.logs.cluster_name}-*
  25. appender.rolling.strategy.action.condition.nested_condition.type = IfAccumulatedFileSize
  26. appender.rolling.strategy.action.condition.nested_condition.exceeds = 2GB
  27. ################################################
  28. ######## Server - old style pattern ###########
  29. appender.rolling_old.type = RollingFile
  30. appender.rolling_old.name = rolling_old
  31. appender.rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}.log
  32. appender.rolling_old.layout.type = PatternLayout
  33. appender.rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n
  34. appender.rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}-%i.log.gz
  35. appender.rolling_old.policies.type = Policies
  36. appender.rolling_old.policies.time.type = TimeBasedTriggeringPolicy
  37. appender.rolling_old.policies.time.interval = 1
  38. appender.rolling_old.policies.time.modulate = true
  39. appender.rolling_old.policies.size.type = SizeBasedTriggeringPolicy
  40. appender.rolling_old.policies.size.size = 128MB
  41. appender.rolling_old.strategy.type = DefaultRolloverStrategy
  42. appender.rolling_old.strategy.fileIndex = nomax
  43. appender.rolling_old.strategy.action.type = Delete
  44. appender.rolling_old.strategy.action.basepath = ${sys:es.logs.base_path}
  45. appender.rolling_old.strategy.action.condition.type = IfFileName
  46. appender.rolling_old.strategy.action.condition.glob = ${sys:es.logs.cluster_name}-*
  47. appender.rolling_old.strategy.action.condition.nested_condition.type = IfAccumulatedFileSize
  48. appender.rolling_old.strategy.action.condition.nested_condition.exceeds = 2GB
  49. ################################################
  50. rootLogger.level = info
  51. rootLogger.appenderRef.console.ref = console
  52. rootLogger.appenderRef.rolling.ref = rolling
  53. rootLogger.appenderRef.rolling_old.ref = rolling_old
  54. ######## Deprecation JSON #######################
  55. appender.deprecation_rolling.type = RollingFile
  56. appender.deprecation_rolling.name = deprecation_rolling
  57. appender.deprecation_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.json
  58. appender.deprecation_rolling.layout.type = ESJsonLayout
  59. appender.deprecation_rolling.layout.type_name = deprecation.elasticsearch
  60. appender.deprecation_rolling.layout.esmessagefields=x-opaque-id
  61. appender.deprecation_rolling.filter.rate_limit.type = RateLimitingFilter
  62. appender.deprecation_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation-%i.json.gz
  63. appender.deprecation_rolling.policies.type = Policies
  64. appender.deprecation_rolling.policies.size.type = SizeBasedTriggeringPolicy
  65. appender.deprecation_rolling.policies.size.size = 1GB
  66. appender.deprecation_rolling.strategy.type = DefaultRolloverStrategy
  67. appender.deprecation_rolling.strategy.max = 4
  68. appender.header_warning.type = HeaderWarningAppender
  69. appender.header_warning.name = header_warning
  70. #################################################
  71. ######## Deprecation - old style pattern #######
  72. appender.deprecation_rolling_old.type = RollingFile
  73. appender.deprecation_rolling_old.name = deprecation_rolling_old
  74. appender.deprecation_rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.log
  75. appender.deprecation_rolling_old.layout.type = PatternLayout
  76. appender.deprecation_rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n
  77. appender.deprecation_rolling_old.filter.rate_limit.type = RateLimitingFilter
  78. appender.deprecation_rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  79. _deprecation-%i.log.gz
  80. appender.deprecation_rolling_old.policies.type = Policies
  81. appender.deprecation_rolling_old.policies.size.type = SizeBasedTriggeringPolicy
  82. appender.deprecation_rolling_old.policies.size.size = 1GB
  83. appender.deprecation_rolling_old.strategy.type = DefaultRolloverStrategy
  84. appender.deprecation_rolling_old.strategy.max = 4
  85. #################################################
  86. logger.deprecation.name = org.elasticsearch.deprecation
  87. logger.deprecation.level = deprecation
  88. logger.deprecation.appenderRef.deprecation_rolling.ref = deprecation_rolling
  89. logger.deprecation.appenderRef.deprecation_rolling_old.ref = deprecation_rolling_old
  90. logger.deprecation.appenderRef.header_warning.ref = header_warning
  91. logger.deprecation.additivity = false
  92. ######## Search slowlog JSON ####################
  93. appender.index_search_slowlog_rolling.type = RollingFile
  94. appender.index_search_slowlog_rolling.name = index_search_slowlog_rolling
  95. appender.index_search_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs\
  96. .cluster_name}_index_search_slowlog.json
  97. appender.index_search_slowlog_rolling.layout.type = ESJsonLayout
  98. appender.index_search_slowlog_rolling.layout.type_name = index_search_slowlog
  99. appender.index_search_slowlog_rolling.layout.esmessagefields=message,took,took_millis,total_hits,types,stats,search_type,total_shards,source,id
  100. appender.index_search_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs\
  101. .cluster_name}_index_search_slowlog-%i.json.gz
  102. appender.index_search_slowlog_rolling.policies.type = Policies
  103. appender.index_search_slowlog_rolling.policies.size.type = SizeBasedTriggeringPolicy
  104. appender.index_search_slowlog_rolling.policies.size.size = 1GB
  105. appender.index_search_slowlog_rolling.strategy.type = DefaultRolloverStrategy
  106. appender.index_search_slowlog_rolling.strategy.max = 4
  107. #################################################
  108. ######## Search slowlog - old style pattern ####
  109. appender.index_search_slowlog_rolling_old.type = RollingFile
  110. appender.index_search_slowlog_rolling_old.name = index_search_slowlog_rolling_old
  111. appender.index_search_slowlog_rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  112. _index_search_slowlog.log
  113. appender.index_search_slowlog_rolling_old.layout.type = PatternLayout
  114. appender.index_search_slowlog_rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n
  115. appender.index_search_slowlog_rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  116. _index_search_slowlog-%i.log.gz
  117. appender.index_search_slowlog_rolling_old.policies.type = Policies
  118. appender.index_search_slowlog_rolling_old.policies.size.type = SizeBasedTriggeringPolicy
  119. appender.index_search_slowlog_rolling_old.policies.size.size = 1GB
  120. appender.index_search_slowlog_rolling_old.strategy.type = DefaultRolloverStrategy
  121. appender.index_search_slowlog_rolling_old.strategy.max = 4
  122. #################################################
  123. logger.index_search_slowlog_rolling.name = index.search.slowlog
  124. logger.index_search_slowlog_rolling.level = trace
  125. logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling.ref = index_search_slowlog_rolling
  126. logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling_old.ref = index_search_slowlog_rolling_old
  127. logger.index_search_slowlog_rolling.additivity = false
  128. ######## Indexing slowlog JSON ##################
  129. appender.index_indexing_slowlog_rolling.type = RollingFile
  130. appender.index_indexing_slowlog_rolling.name = index_indexing_slowlog_rolling
  131. appender.index_indexing_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  132. _index_indexing_slowlog.json
  133. appender.index_indexing_slowlog_rolling.layout.type = ESJsonLayout
  134. appender.index_indexing_slowlog_rolling.layout.type_name = index_indexing_slowlog
  135. appender.index_indexing_slowlog_rolling.layout.esmessagefields=message,took,took_millis,doc_type,id,routing,source
  136. appender.index_indexing_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  137. _index_indexing_slowlog-%i.json.gz
  138. appender.index_indexing_slowlog_rolling.policies.type = Policies
  139. appender.index_indexing_slowlog_rolling.policies.size.type = SizeBasedTriggeringPolicy
  140. appender.index_indexing_slowlog_rolling.policies.size.size = 1GB
  141. appender.index_indexing_slowlog_rolling.strategy.type = DefaultRolloverStrategy
  142. appender.index_indexing_slowlog_rolling.strategy.max = 4
  143. #################################################
  144. ######## Indexing slowlog - old style pattern ##
  145. appender.index_indexing_slowlog_rolling_old.type = RollingFile
  146. appender.index_indexing_slowlog_rolling_old.name = index_indexing_slowlog_rolling_old
  147. appender.index_indexing_slowlog_rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  148. _index_indexing_slowlog.log
  149. appender.index_indexing_slowlog_rolling_old.layout.type = PatternLayout
  150. appender.index_indexing_slowlog_rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n
  151. appender.index_indexing_slowlog_rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
  152. _index_indexing_slowlog-%i.log.gz
  153. appender.index_indexing_slowlog_rolling_old.policies.type = Policies
  154. appender.index_indexing_slowlog_rolling_old.policies.size.type = SizeBasedTriggeringPolicy
  155. appender.index_indexing_slowlog_rolling_old.policies.size.size = 1GB
  156. appender.index_indexing_slowlog_rolling_old.strategy.type = DefaultRolloverStrategy
  157. appender.index_indexing_slowlog_rolling_old.strategy.max = 4
  158. #################################################
  159. logger.index_indexing_slowlog.name = index.indexing.slowlog.index
  160. logger.index_indexing_slowlog.level = trace
  161. logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref = index_indexing_slowlog_rolling
  162. logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling_old.ref = index_indexing_slowlog_rolling_old
  163. logger.index_indexing_slowlog.additivity = false
  164. appender.audit_rolling.type = RollingFile
  165. appender.audit_rolling.name = audit_rolling
  166. appender.audit_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_audit.json
  167. appender.audit_rolling.layout.type = PatternLayout
  168. appender.audit_rolling.layout.pattern = {\
  169. "type":"audit", \
  170. "timestamp":"%d{yyyy-MM-dd'T'HH:mm:ss,SSSZ}"\
  171. %varsNotEmpty{, "node.name":"%enc{%map{node.name}}{JSON}"}\
  172. %varsNotEmpty{, "node.id":"%enc{%map{node.id}}{JSON}"}\
  173. %varsNotEmpty{, "host.name":"%enc{%map{host.name}}{JSON}"}\
  174. %varsNotEmpty{, "host.ip":"%enc{%map{host.ip}}{JSON}"}\
  175. %varsNotEmpty{, "event.type":"%enc{%map{event.type}}{JSON}"}\
  176. %varsNotEmpty{, "event.action":"%enc{%map{event.action}}{JSON}"}\
  177. %varsNotEmpty{, "authentication.type":"%enc{%map{authentication.type}}{JSON}"}\
  178. %varsNotEmpty{, "user.name":"%enc{%map{user.name}}{JSON}"}\
  179. %varsNotEmpty{, "user.run_by.name":"%enc{%map{user.run_by.name}}{JSON}"}\
  180. %varsNotEmpty{, "user.run_as.name":"%enc{%map{user.run_as.name}}{JSON}"}\
  181. %varsNotEmpty{, "user.realm":"%enc{%map{user.realm}}{JSON}"}\
  182. %varsNotEmpty{, "user.run_by.realm":"%enc{%map{user.run_by.realm}}{JSON}"}\
  183. %varsNotEmpty{, "user.run_as.realm":"%enc{%map{user.run_as.realm}}{JSON}"}\
  184. %varsNotEmpty{, "user.roles":%map{user.roles}}\
  185. %varsNotEmpty{, "apikey.id":"%enc{%map{apikey.id}}{JSON}"}\
  186. %varsNotEmpty{, "apikey.name":"%enc{%map{apikey.name}}{JSON}"}\
  187. %varsNotEmpty{, "authentication.token.name":"%enc{%map{authentication.token.name}}{JSON}"}\
  188. %varsNotEmpty{, "authentication.token.type":"%enc{%map{authentication.token.type}}{JSON}"}\
  189. %varsNotEmpty{, "origin.type":"%enc{%map{origin.type}}{JSON}"}\
  190. %varsNotEmpty{, "origin.address":"%enc{%map{origin.address}}{JSON}"}\
  191. %varsNotEmpty{, "realm":"%enc{%map{realm}}{JSON}"}\
  192. %varsNotEmpty{, "url.path":"%enc{%map{url.path}}{JSON}"}\
  193. %varsNotEmpty{, "url.query":"%enc{%map{url.query}}{JSON}"}\
  194. %varsNotEmpty{, "request.method":"%enc{%map{request.method}}{JSON}"}\
  195. %varsNotEmpty{, "request.body":"%enc{%map{request.body}}{JSON}"}\
  196. %varsNotEmpty{, "request.id":"%enc{%map{request.id}}{JSON}"}\
  197. %varsNotEmpty{, "action":"%enc{%map{action}}{JSON}"}\
  198. %varsNotEmpty{, "request.name":"%enc{%map{request.name}}{JSON}"}\
  199. %varsNotEmpty{, "indices":%map{indices}}\
  200. %varsNotEmpty{, "opaque_id":"%enc{%map{opaque_id}}{JSON}"}\
  201. %varsNotEmpty{, "x_forwarded_for":"%enc{%map{x_forwarded_for}}{JSON}"}\
  202. %varsNotEmpty{, "transport.profile":"%enc{%map{transport.profile}}{JSON}"}\
  203. %varsNotEmpty{, "rule":"%enc{%map{rule}}{JSON}"}\
  204. %varsNotEmpty{, "put":%map{put}}\
  205. %varsNotEmpty{, "delete":%map{delete}}\
  206. %varsNotEmpty{, "change":%map{change}}\
  207. %varsNotEmpty{, "create":%map{create}}\
  208. %varsNotEmpty{, "invalidate":%map{invalidate}}\
  209. }%n
  210. # "node.name" node name from the `elasticsearch.yml` settings
  211. # "node.id" node id which should not change between cluster restarts
  212. # "host.name" unresolved hostname of the local node
  213. # "host.ip" the local bound ip (i.e. the ip listening for connections)
  214. # "origin.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)
  215. # "event.action" the name of the audited event, eg. "authentication_failed", "access_granted", "run_as_granted", etc.
  216. # "authentication.type" one of "realm", "api_key", "token", "anonymous" or "internal"
  217. # "user.name" the subject name as authenticated by a realm
  218. # "user.run_by.name" the original authenticated subject name that is impersonating another one.
  219. # "user.run_as.name" if this "event.action" is of a run_as type, this is the subject name to be impersonated as.
  220. # "user.realm" the name of the realm that authenticated "user.name"
  221. # "user.run_by.realm" the realm name of the impersonating subject ("user.run_by.name")
  222. # "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
  223. # "user.roles" the roles array of the user; these are the roles that are granting privileges
  224. # "apikey.id" this field is present if and only if the "authentication.type" is "api_key"
  225. # "apikey.name" this field is present if and only if the "authentication.type" is "api_key"
  226. # "authentication.token.name" this field is present if and only if the authenticating credential is a service account token
  227. # "authentication.token.type" this field is present if and only if the authenticating credential is a service account token
  228. # "event.type" informs about what internal system generated the event; possible values are "rest", "transport", "ip_filter" and "security_config_change"
  229. # "origin.address" the remote address and port of the first network hop, i.e. a REST proxy or another cluster node
  230. # "realm" name of a realm that has generated an "authentication_failed" or an "authentication_successful"; the subject is not yet authenticated
  231. # "url.path" the URI component between the port and the query string; it is percent (URL) encoded
  232. # "url.query" the URI component after the path and before the fragment; it is percent (URL) encoded
  233. # "request.method" the method of the HTTP request, i.e. one of GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH, TRACE, CONNECT
  234. # "request.body" the content of the request body entity, JSON escaped
  235. # "request.id" a synthetic identifier for the incoming request, this is unique per incoming request, and consistent across all audit events generated by that request
  236. # "action" an action is the most granular operation that is authorized and this identifies it in a namespaced way (internal)
  237. # "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)
  238. # "indices" the array of indices that the "action" is acting upon
  239. # "opaque_id" opaque value conveyed by the "X-Opaque-Id" request header
  240. # "x_forwarded_for" the addresses from the "X-Forwarded-For" request header, as a verbatim string value (not an array)
  241. # "transport.profile" name of the transport profile in case this is a "connection_granted" or "connection_denied" event
  242. # "rule" name of the applied rule if the "origin.type" is "ip_filter"
  243. # the "put", "delete", "change", "create", "invalidate" fields are only present
  244. # when the "event.type" is "security_config_change" and contain the security config change (as an object) taking effect
  245. appender.audit_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_audit-%d{yyyy-MM-dd}.json
  246. appender.audit_rolling.policies.type = Policies
  247. appender.audit_rolling.policies.time.type = TimeBasedTriggeringPolicy
  248. appender.audit_rolling.policies.time.interval = 1
  249. appender.audit_rolling.policies.time.modulate = true
  250. logger.xpack_security_audit_logfile.name = org.elasticsearch.xpack.security.audit.logfile.LoggingAuditTrail
  251. logger.xpack_security_audit_logfile.level = info
  252. logger.xpack_security_audit_logfile.appenderRef.audit_rolling.ref = audit_rolling
  253. logger.xpack_security_audit_logfile.additivity = false
  254. logger.xmlsig.name = org.apache.xml.security.signature.XMLSignature
  255. logger.xmlsig.level = error
  256. logger.samlxml_decrypt.name = org.opensaml.xmlsec.encryption.support.Decrypter
  257. logger.samlxml_decrypt.level = fatal
  258. logger.saml2_decrypt.name = org.opensaml.saml.saml2.encryption.Decrypter
  259. logger.saml2_decrypt.level = fatal