log4j2.properties 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.}] %marker%m%n
  9. appender.rolling.type = RollingFile
  10. appender.rolling.name = rolling
  11. appender.rolling.fileName = ${sys:es.logs}.log
  12. appender.rolling.layout.type = PatternLayout
  13. appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.10000m%n
  14. appender.rolling.filePattern = ${sys:es.logs}-%d{yyyy-MM-dd}.log
  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. rootLogger.level = info
  20. rootLogger.appenderRef.console.ref = console
  21. rootLogger.appenderRef.rolling.ref = rolling
  22. appender.deprecation_rolling.type = RollingFile
  23. appender.deprecation_rolling.name = deprecation_rolling
  24. appender.deprecation_rolling.fileName = ${sys:es.logs}_deprecation.log
  25. appender.deprecation_rolling.layout.type = PatternLayout
  26. appender.deprecation_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.10000m%n
  27. appender.deprecation_rolling.filePattern = ${sys:es.logs}_deprecation-%i.log.gz
  28. appender.deprecation_rolling.policies.type = Policies
  29. appender.deprecation_rolling.policies.size.type = SizeBasedTriggeringPolicy
  30. appender.deprecation_rolling.policies.size.size = 1GB
  31. appender.deprecation_rolling.strategy.type = DefaultRolloverStrategy
  32. appender.deprecation_rolling.strategy.max = 4
  33. logger.deprecation.name = org.elasticsearch.deprecation
  34. logger.deprecation.level = warn
  35. logger.deprecation.appenderRef.deprecation_rolling.ref = deprecation_rolling
  36. logger.deprecation.additivity = false
  37. appender.index_search_slowlog_rolling.type = RollingFile
  38. appender.index_search_slowlog_rolling.name = index_search_slowlog_rolling
  39. appender.index_search_slowlog_rolling.fileName = ${sys:es.logs}_index_search_slowlog.log
  40. appender.index_search_slowlog_rolling.layout.type = PatternLayout
  41. appender.index_search_slowlog_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%.10000m%n
  42. appender.index_search_slowlog_rolling.filePattern = ${sys:es.logs}_index_search_slowlog-%d{yyyy-MM-dd}.log
  43. appender.index_search_slowlog_rolling.policies.type = Policies
  44. appender.index_search_slowlog_rolling.policies.time.type = TimeBasedTriggeringPolicy
  45. appender.index_search_slowlog_rolling.policies.time.interval = 1
  46. appender.index_search_slowlog_rolling.policies.time.modulate = true
  47. logger.index_search_slowlog_rolling.name = index.search.slowlog
  48. logger.index_search_slowlog_rolling.level = trace
  49. logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling.ref = index_search_slowlog_rolling
  50. logger.index_search_slowlog_rolling.additivity = false
  51. appender.index_indexing_slowlog_rolling.type = RollingFile
  52. appender.index_indexing_slowlog_rolling.name = index_indexing_slowlog_rolling
  53. appender.index_indexing_slowlog_rolling.fileName = ${sys:es.logs}_index_indexing_slowlog.log
  54. appender.index_indexing_slowlog_rolling.layout.type = PatternLayout
  55. appender.index_indexing_slowlog_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%.10000m%n
  56. appender.index_indexing_slowlog_rolling.filePattern = ${sys:es.logs}_index_indexing_slowlog-%d{yyyy-MM-dd}.log
  57. appender.index_indexing_slowlog_rolling.policies.type = Policies
  58. appender.index_indexing_slowlog_rolling.policies.time.type = TimeBasedTriggeringPolicy
  59. appender.index_indexing_slowlog_rolling.policies.time.interval = 1
  60. appender.index_indexing_slowlog_rolling.policies.time.modulate = true
  61. logger.index_indexing_slowlog.name = index.indexing.slowlog.index
  62. logger.index_indexing_slowlog.level = trace
  63. logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref = index_indexing_slowlog_rolling
  64. logger.index_indexing_slowlog.additivity = false