andreymal

tabun config: elastic logging.yml

Nov 3rd, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.59 KB | None | 0 0
  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: DEBUG
  7.  
  8.   # deprecation logging, turn to DEBUG to see them
  9.   deprecation: INFO, deprecation_log_file
  10.  
  11.   # reduce the logging for aws, too much is logged under the default INFO
  12.   com.amazonaws: WARN
  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.  
  17.   org.apache.http: INFO
  18.  
  19.   # gateway
  20.   #gateway: DEBUG
  21.   #index.gateway: DEBUG
  22.  
  23.   # peer shard recovery
  24.   #indices.recovery: DEBUG
  25.  
  26.   # discovery
  27.   #discovery: TRACE
  28.  
  29.   index.search.slowlog: TRACE, index_search_slow_log_file
  30.   index.indexing.slowlog: TRACE, index_indexing_slow_log_file
  31.  
  32. additivity:
  33.   index.search.slowlog: false
  34.   index.indexing.slowlog: false
  35.   deprecation: false
  36.  
  37. appender:
  38.   console:
  39.     type: console
  40.     layout:
  41.       type: consolePattern
  42.       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  43.  
  44.   file:
  45.     type: dailyRollingFile
  46.     file: ${path.logs}/${cluster.name}.log
  47.     datePattern: "'.'yyyy-MM-dd"
  48.     layout:
  49.       type: pattern
  50.       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.10000m%n"
  51.  
  52.   # Use the following log4j-extras RollingFileAppender to enable gzip compression of log files.
  53.   # For more information see https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html
  54.   #file:
  55.     #type: extrasRollingFile
  56.     #file: ${path.logs}/${cluster.name}.log
  57.     #rollingPolicy: timeBased
  58.     #rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}.log.%d{yyyy-MM-dd}.gz
  59.     #layout:
  60.       #type: pattern
  61.       #conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  62.  
  63.   deprecation_log_file:
  64.     type: dailyRollingFile
  65.     file: ${path.logs}/${cluster.name}_deprecation.log
  66.     datePattern: "'.'yyyy-MM-dd"
  67.     layout:
  68.       type: pattern
  69.       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  70.  
  71.   index_search_slow_log_file:
  72.     type: dailyRollingFile
  73.     file: ${path.logs}/${cluster.name}_index_search_slowlog.log
  74.     datePattern: "'.'yyyy-MM-dd"
  75.     layout:
  76.       type: pattern
  77.       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  78.  
  79.   index_indexing_slow_log_file:
  80.     type: dailyRollingFile
  81.     file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
  82.     datePattern: "'.'yyyy-MM-dd"
  83.     layout:
  84.       type: pattern
  85.       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
Add Comment
Please, Sign In to add comment