elasticsearch-logging.yml.j2 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # you can override this using by setting a system property, for example -Des.logger.level=DEBUG
  2. es.logger.level: INFO
  3. rootLogger: ${es.logger.level}, console, file
  4. logger:
  5. # log action execution errors for easier debugging
  6. action: WARN
  7. # reduce the logging for aws, too much is logged under the default INFO
  8. com.amazonaws: WARN
  9. io.fabric8.elasticsearch: ${PLUGIN_LOGLEVEL}
  10. io.fabric8.kubernetes: ${PLUGIN_LOGLEVEL}
  11. # gateway
  12. #gateway: DEBUG
  13. #index.gateway: DEBUG
  14. # peer shard recovery
  15. #indices.recovery: DEBUG
  16. # discovery
  17. #discovery: TRACE
  18. index.search.slowlog: TRACE, index_search_slow_log_file
  19. index.indexing.slowlog: TRACE, index_indexing_slow_log_file
  20. # search-guard
  21. com.floragunn.searchguard: WARN
  22. additivity:
  23. index.search.slowlog: false
  24. index.indexing.slowlog: false
  25. appender:
  26. console:
  27. type: console
  28. layout:
  29. type: consolePattern
  30. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  31. # need this filter until https://github.com/openshift/origin/issues/14515 is fixed
  32. filter:
  33. 1:
  34. type: org.apache.log4j.varia.StringMatchFilter
  35. StringToMatch: "SSL Problem illegal change cipher spec msg, conn state = 6, handshake state = 1"
  36. AcceptOnMatch: false
  37. file:
  38. type: dailyRollingFile
  39. file: ${path.logs}/${cluster.name}.log
  40. datePattern: "'.'yyyy-MM-dd"
  41. layout:
  42. type: pattern
  43. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  44. # need this filter until https://github.com/openshift/origin/issues/14515 is fixed
  45. filter:
  46. 1:
  47. type: org.apache.log4j.varia.StringMatchFilter
  48. StringToMatch: "SSL Problem illegal change cipher spec msg, conn state = 6, handshake state = 1"
  49. AcceptOnMatch: false
  50. # Use the following log4j-extras RollingFileAppender to enable gzip compression of log files.
  51. # For more information see https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html
  52. #file:
  53. #type: extrasRollingFile
  54. #file: ${path.logs}/${cluster.name}.log
  55. #rollingPolicy: timeBased
  56. #rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}.log.%d{yyyy-MM-dd}.gz
  57. #layout:
  58. #type: pattern
  59. #conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  60. index_search_slow_log_file:
  61. type: dailyRollingFile
  62. file: ${path.logs}/${cluster.name}_index_search_slowlog.log
  63. datePattern: "'.'yyyy-MM-dd"
  64. layout:
  65. type: pattern
  66. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  67. index_indexing_slow_log_file:
  68. type: dailyRollingFile
  69. file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
  70. datePattern: "'.'yyyy-MM-dd"
  71. layout:
  72. type: pattern
  73. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"