java+jvm+log_elasticsearch6.2.4(win)默认jvm+log配置

status =error

# log action execution errorsforeasier debugging

logger.action.name=org.elasticsearch.action

logger.action.level=debug

appender.console.type=Console

appender.console.name=console

appender.console.layout.type=PatternLayout

appender.console.layout.pattern= [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n

appender.rolling.type=RollingFile

appender.rolling.name=rolling

appender.rolling.fileName=${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}.log

appender.rolling.layout.type=PatternLayout

appender.rolling.layout.pattern= [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n

appender.rolling.filePattern= ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}-%i.log.gz

appender.rolling.policies.type=Policies

appender.rolling.policies.time.type=TimeBasedTriggeringPolicy

appender.rolling.policies.time.interval= 1appender.rolling.policies.time.modulate= trueappender.rolling.policies.size.type=SizeBasedTriggeringPolicy

appender.rolling.policies.size.size=128MB

appender.rolling.strategy.type=DefaultRolloverStrategy

appender.rolling.strategy.fileIndex=nomax

appender.rolling.strategy.action.type=Delete

appender.rolling.strategy.action.basepath=${sys:es.logs.base_path}

appender.rolling.strategy.action.condition.type=IfFileName

appender.rolling.strategy.action.condition.glob= ${sys:es.logs.cluster_name}-*appender.rolling.strategy.action.condition.nested_condition.type=IfAccumulatedFileSize

appender.rolling.strategy.action.condition.nested_condition.exceeds=2GB

rootLogger.level=info

rootLogger.appenderRef.console.ref =console

rootLogger.appenderRef.rolling.ref =rolling

appender.deprecation_rolling.type=RollingFile

appender.deprecation_rolling.name=deprecation_rolling

appender.deprecation_rolling.fileName=${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.log

appender.deprecation_rolling.layout.type=PatternLayout

appender.deprecation_rolling.layout.pattern= [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n

appender.deprecation_rolling.filePattern= ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation-%i.log.gz

appender.deprecation_rolling.policies.type=Policies

appender.deprecation_rolling.policies.size.type=SizeBasedTriggeringPolicy

appender.deprecation_rolling.policies.size.size=1GB

appender.deprecation_rolling.strategy.type=DefaultRolloverStrategy

appender.deprecation_rolling.strategy.max= 4logger.deprecation.name=org.elasticsearch.deprecation

logger.deprecation.level=warn

logger.deprecation.appenderRef.deprecation_rolling.ref =deprecation_rolling

logger.deprecation.additivity= falseappender.index_search_slowlog_rolling.type=RollingFile

appender.index_search_slowlog_rolling.name=index_search_slowlog_rolling

appender.index_search_slowlog_rolling.fileName=${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_search_slowlog.log

appender.index_search_slowlog_rolling.layout.type=PatternLayout

appender.index_search_slowlog_rolling.layout.pattern= [%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n

appender.index_search_slowlog_rolling.filePattern= ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_search_slowlog-%d{yyyy-MM-dd}.log

appender.index_search_slowlog_rolling.policies.type=Policies

appender.index_search_slowlog_rolling.policies.time.type=TimeBasedTriggeringPolicy

appender.index_search_slowlog_rolling.policies.time.interval= 1appender.index_search_slowlog_rolling.policies.time.modulate= truelogger.index_search_slowlog_rolling.name=index.search.slowlog

logger.index_search_slowlog_rolling.level=trace

logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling.ref =index_search_slowlog_rolling

logger.index_search_slowlog_rolling.additivity= falseappender.index_indexing_slowlog_rolling.type=RollingFile

appender.index_indexing_slowlog_rolling.name=index_indexing_slowlog_rolling

appender.index_indexing_slowlog_rolling.fileName=${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_indexing_slowlog.log

appender.index_indexing_slowlog_rolling.layout.type=PatternLayout

appender.index_indexing_slowlog_rolling.layout.pattern= [%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n

appender.index_indexing_slowlog_rolling.filePattern= ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_index_indexing_slowlog-%d{yyyy-MM-dd}.log

appender.index_indexing_slowlog_rolling.policies.type=Policies

appender.index_indexing_slowlog_rolling.policies.time.type=TimeBasedTriggeringPolicy

appender.index_indexing_slowlog_rolling.policies.time.interval= 1appender.index_indexing_slowlog_rolling.policies.time.modulate= truelogger.index_indexing_slowlog.name=index.indexing.slowlog.index

logger.index_indexing_slowlog.level=trace

logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref =index_indexing_slowlog_rolling

logger.index_indexing_slowlog.additivity= false

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值