elasticsearch-logging.yml.j2 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. file:
  32. type: dailyRollingFile
  33. file: ${path.logs}/${cluster.name}.log
  34. datePattern: "'.'yyyy-MM-dd"
  35. layout:
  36. type: pattern
  37. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  38. # Use the following log4j-extras RollingFileAppender to enable gzip compression of log files.
  39. # For more information see https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html
  40. #file:
  41. #type: extrasRollingFile
  42. #file: ${path.logs}/${cluster.name}.log
  43. #rollingPolicy: timeBased
  44. #rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}.log.%d{yyyy-MM-dd}.gz
  45. #layout:
  46. #type: pattern
  47. #conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  48. index_search_slow_log_file:
  49. type: dailyRollingFile
  50. file: ${path.logs}/${cluster.name}_index_search_slowlog.log
  51. datePattern: "'.'yyyy-MM-dd"
  52. layout:
  53. type: pattern
  54. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  55. index_indexing_slow_log_file:
  56. type: dailyRollingFile
  57. file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
  58. datePattern: "'.'yyyy-MM-dd"
  59. layout:
  60. type: pattern
  61. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"