首页 > 代码库 > elasticsearch 2.4 修改logging.yml设置成按size存贮日志
elasticsearch 2.4 修改logging.yml设置成按size存贮日志
elasticsearch 2.4 日志为logging.yml 设置成size存储 由于elasticsearch 5.XX使用log4j2.property 教程很多,很方便设置成按size存储
es.logger.level: INFO #rootLogger: ${es.logger.level}, console, file rootLogger: ${es.logger.level}, file #只输出到文件不输出到控制台 #开启debug日志追踪 #logger: # action: DEBUG # deprecation: INFO, deprecation_log_file # index.search.slowlog: TRACE, index_search_slow_log_file # index.indexing.slowlog: TRACE, index_indexing_slow_log_file #additivity: # index.search.slowlog: false # index.indexing.slowlog: false # deprecation: false appender: console: type: console layout: type: consolePattern conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" file: type: rollingFile file: ${path.logs}/${cluster.name}.log maxFileSize: 10000000 #10M时滚动一次 maxBackupIndex: 5 layout: type: pattern conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.10000m%n" #deprecation_log_file: # type: rollingFile # file: ${path.logs}/${cluster.name}_deprecation.log # maxFileSize: 10000000 # maxBackupIndex: 5 # layout: # type: pattern # conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" #index_search_slow_log_file: # type: rollingFile # file: ${path.logs}/${cluster.name}_index_search_slowlog.log # maxFileSize: 10000000 # maxBackupIndex: 5 # layout: # type: pattern # conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" #index_indexing_slow_log_file: # type: rollingFile # file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log # maxFileSize: 10000000 # maxBackupIndex: 5 # layout: # type: pattern # conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
本文出自 “10409019” 博客,请务必保留此出处http://10419019.blog.51cto.com/10409019/1876488
elasticsearch 2.4 修改logging.yml设置成按size存贮日志
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。