Advertisement
buddy_spencer

log4j2.properties

Nov 28th, 2017
1,011
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. status = error
  2.  
  3. # log action execution errors for easier debugging
  4. logger.action.name = org.elasticsearch.action
  5. logger.action.level = debug
  6.  
  7. appender.console.type = Console
  8. appender.console.name = console
  9. appender.console.layout.type = PatternLayout
  10. appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
  11.  
  12. appender.rolling.type = RollingFile
  13. appender.rolling.name = rolling
  14. appender.rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}.log
  15. appender.rolling.layout.type = PatternLayout
  16. appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n
  17. appender.rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}.log
  18. appender.rolling.policies.type = Policies
  19. appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
  20. appender.rolling.policies.time.interval = 1
  21. appender.rolling.policies.time.modulate = true
  22. appender.rolling.strategy.type = DefaultRolloverStrategy
  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 = IfLastModified
  26. appender.rolling.strategy.action.condition.age = 7D
  27. appender.rolling.strategy.action.PathConditions.type = IfFileName
  28. appender.rolling.strategy.action.PathConditions.glob = ${sys:es.logs.cluster_name}-*
  29.  
  30. rootLogger.level = info
  31. rootLogger.appenderRef.console.ref = console
  32. rootLogger.appenderRef.rolling.ref = rolling
  33.  
  34. appender.deprecation_rolling.type = RollingFile
  35. appender.deprecation_rolling.name = deprecation_rolling
  36. appender.deprecation_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.log
  37. appender.deprecation_rolling.layout.type = PatternLayout
  38. appender.deprecation_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n
  39. appender.deprecation_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation-%i.log.gz
  40. appender.deprecation_rolling.policies.type = Policies
  41. appender.deprecation_rolling.policies.size.type = SizeBasedTriggeringPolicy
  42. appender.deprecation_rolling.policies.size.size = 1GB
  43. appender.deprecation_rolling.strategy.type = DefaultRolloverStrategy
  44. appender.deprecation_rolling.strategy.max = 4
  45.  
  46. logger.deprecation.name = org.elasticsearch.deprecation
  47. logger.deprecation.level = warn
  48. logger.deprecation.appenderRef.deprecation_rolling.ref = deprecation_rolling
  49. logger.deprecation.additivity = false
  50.  
  51. appender.index_search_slowlog_rolling.type = RollingFile
  52. appender.index_search_slowlog_rolling.name = index_search_slowlog_rolling
  53. appender.index_search_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_search_slowlog.log
  54. appender.index_search_slowlog_rolling.layout.type = PatternLayout
  55. appender.index_search_slowlog_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n
  56. 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
  57. appender.index_search_slowlog_rolling.policies.type = Policies
  58. appender.index_search_slowlog_rolling.policies.time.type = TimeBasedTriggeringPolicy
  59. appender.index_search_slowlog_rolling.policies.time.interval = 1
  60. appender.index_search_slowlog_rolling.policies.time.modulate = true
  61.  
  62. logger.index_search_slowlog_rolling.name = index.search.slowlog
  63. logger.index_search_slowlog_rolling.level = trace
  64. logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling.ref = index_search_slowlog_rolling
  65. logger.index_search_slowlog_rolling.additivity = false
  66.  
  67. appender.index_indexing_slowlog_rolling.type = RollingFile
  68. appender.index_indexing_slowlog_rolling.name = index_indexing_slowlog_rolling
  69. appender.index_indexing_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_indexing_slowlog.log
  70. appender.index_indexing_slowlog_rolling.layout.type = PatternLayout
  71. appender.index_indexing_slowlog_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n
  72. 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
  73. appender.index_indexing_slowlog_rolling.policies.type = Policies
  74. appender.index_indexing_slowlog_rolling.policies.time.type = TimeBasedTriggeringPolicy
  75. appender.index_indexing_slowlog_rolling.policies.time.interval = 1
  76. appender.index_indexing_slowlog_rolling.policies.time.modulate = true
  77.  
  78. logger.index_indexing_slowlog.name = index.indexing.slowlog.index
  79. logger.index_indexing_slowlog.level = trace
  80. logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref = index_indexing_slowlog_rolling
  81. logger.index_indexing_slowlog.additivity = false
Advertisement
RAW Paste Data Copied
Advertisement