elasticsearch-logging.yml.j2 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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}, {{root_logger}}
  4. logger:
  5. # log action execution errors for easier debugging
  6. action: WARN
  7. # deprecation logging, turn to DEBUG to see them
  8. deprecation: WARN, deprecation_log_file
  9. # reduce the logging for aws, too much is logged under the default INFO
  10. com.amazonaws: WARN
  11. io.fabric8.elasticsearch: ${PLUGIN_LOGLEVEL}
  12. io.fabric8.kubernetes: ${PLUGIN_LOGLEVEL}
  13. # aws will try to do some sketchy JMX stuff, but its not needed.
  14. com.amazonaws.jmx.SdkMBeanRegistrySupport: ERROR
  15. com.amazonaws.metrics.AwsSdkMetrics: ERROR
  16. org.apache.http: INFO
  17. # gateway
  18. #gateway: DEBUG
  19. #index.gateway: DEBUG
  20. # peer shard recovery
  21. #indices.recovery: DEBUG
  22. # discovery
  23. #discovery: TRACE
  24. index.search.slowlog: TRACE, index_search_slow_log_file
  25. index.indexing.slowlog: TRACE, index_indexing_slow_log_file
  26. # search-guard
  27. com.floragunn.searchguard: WARN
  28. additivity:
  29. index.search.slowlog: false
  30. index.indexing.slowlog: false
  31. deprecation: false
  32. appender:
  33. console:
  34. type: console
  35. layout:
  36. type: consolePattern
  37. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.10000m%n"
  38. file:
  39. type: dailyRollingFile
  40. file: ${path.logs}/${cluster.name}.log
  41. datePattern: "'.'yyyy-MM-dd"
  42. layout:
  43. type: pattern
  44. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  45. deprecation_log_file:
  46. type: dailyRollingFile
  47. file: ${path.logs}/${cluster.name}_deprecation.log
  48. datePattern: "'.'yyyy-MM-dd"
  49. layout:
  50. type: pattern
  51. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  52. index_search_slow_log_file:
  53. type: dailyRollingFile
  54. file: ${path.logs}/${cluster.name}_index_search_slowlog.log
  55. datePattern: "'.'yyyy-MM-dd"
  56. layout:
  57. type: pattern
  58. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  59. index_indexing_slow_log_file:
  60. type: dailyRollingFile
  61. file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
  62. datePattern: "'.'yyyy-MM-dd"
  63. layout:
  64. type: pattern
  65. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"