当前位置: 首页 > news >正文

app对接网站官方网站建设教程

app对接网站,官方网站建设教程,常德网站定制,营销网站手机站ElasticSearch的慢日志#xff0c;相关的参数及配置方法。 在log4j2.properties中配置慢日志的输出文件名。 Search Slow Log 相关参数 index.search.slowlog.threshold.query.warnindex.search.slowlog.threshold.query.infoindex.search.slowlog.threshold.query.debugin…ElasticSearch的慢日志相关的参数及配置方法。 在log4j2.properties中配置慢日志的输出文件名。 Search Slow Log 相关参数 index.search.slowlog.threshold.query.warnindex.search.slowlog.threshold.query.infoindex.search.slowlog.threshold.query.debugindex.search.slowlog.threshold.query.traceindex.search.slowlog.threshold.fetch.warnindex.search.slowlog.threshold.fetch.infoindex.search.slowlog.threshold.fetch.debugindex.search.slowlog.threshold.fetch.trace 上述参数的默认值均为-1即关闭日志的输出。 参数值为时长单位如下 s即秒样例10s。ms即毫秒样例10ms。 修改各参数的时长命令样例如下 curl -X PUT https://localhost:9200/testindex_001/_settings?pretty -H Content-Type: application/json -d {index.search.slowlog.threshold.query.warn: 10s,index.search.slowlog.threshold.query.info: 5s,index.search.slowlog.threshold.query.debug: 2s,index.search.slowlog.threshold.query.trace: 500ms,index.search.slowlog.threshold.fetch.warn: 1s,index.search.slowlog.threshold.fetch.info: 800ms,index.search.slowlog.threshold.fetch.debug: 500ms,index.search.slowlog.threshold.fetch.trace: 200ms }--cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {acknowledged : true }查看上述参数的当前值命令样例如下 curl -X GET https://localhost:9200/testindex_001/_settings?pretty --cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {testindex_001 : {settings : {index : {routing : {allocation : {include : {_tier_preference : data_content}}},search : {slowlog : {threshold : {fetch : {warn : 1s,trace : 200ms,debug : 500ms,info : 800ms},query : {warn : 10s,trace : 500ms,debug : 2s,info : 5s}}}},number_of_shards : 1,provided_name : testindex_001,merge : {scheduler : {max_thread_count : 2}},creation_date : 1701354456991,number_of_replicas : 1,uuid : 7iGJRFfxRd2jD3qP-KDRmQ,version : {created : 8500003}}}} }Index Slow log 相关参数 index.indexing.slowlog.threshold.index.warn index.indexing.slowlog.threshold.index.info index.indexing.slowlog.threshold.index.debug index.indexing.slowlog.threshold.index.trace 上述参数的默认值均为-1即关闭日志的输出。 参数值为时长单位如下 s即秒样例10s。ms即毫秒样例10ms。 index.indexing.slowlog.source指定在日志中记录数据中_source时的长度默认值为1000。 false或者0记录日志时跳过_source字段。true记录日志时完整记录_source字段。非零值记录日志时截取_source字段的部分。 index.indexing.slowlog.reformat输出日志时对_source做格式化操作默认值为true。 true对_source做格式化操作。false不对_source做格式化操作。 修改各参数的时长命令样例如下 curl -X PUT https://localhost:9200/testindex_001/_settings?pretty -H Content-Type: application/json -d {index.indexing.slowlog.threshold.index.warn: 10s,index.indexing.slowlog.threshold.index.info: 5s,index.indexing.slowlog.threshold.index.debug: 2s,index.indexing.slowlog.threshold.index.trace: 500ms,index.indexing.slowlog.source: 1000 }--cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {acknowledged : true }查看上述参数的当前值命令样例如下 curl -X GET https://localhost:9200/testindex_001/_settings?pretty --cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {testindex_001 : {settings : {index : {routing : {allocation : {include : {_tier_preference : data_content}}},indexing : {slowlog : {threshold : {index : {warn : 10s,trace : 500ms,debug : 2s,info : 5s}},source : 1000}},number_of_shards : 1,provided_name : testindex_001,merge : {scheduler : {max_thread_count : 2}},creation_date : 1701354456991,number_of_replicas : 1,uuid : 7iGJRFfxRd2jD3qP-KDRmQ,version : {created : 8500003}}}} }控制日志级别 从前述配置方法可以发现当前慢日志没有提供参数用于控制日志级别。 但可以通过关闭低级别的日志从而模拟对日志级别的控制。 比如当前只希望记录INFO级别以上的日志则可以执行如下日志关闭debug和trace。 curl -X PUT https://localhost:9200/testindex_001/_settings?pretty -H Content-Type: application/json -d {index.indexing.slowlog.threshold.index.debug: -1,index.indexing.slowlog.threshold.index.trace: -1 }--cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9相关资料 Slow LogUpdate index settings API
http://www.zqtcl.cn/news/129/

相关文章:

  • 昆明网站建设哪家比较青岛seo服务
  • 北京个人制作网站佛山网站优化
  • 腾讯企业邮箱收费标准一年多少钱网站排名优化效果
  • 请人做网站后台密码胶州收电脑号码是多少
  • 怎么样免费给网站做优化韩国外贸平台
  • 北京市建设厅网站首页黑龙江建设网官网手机版
  • 软件网站免费微分销系统哪家比较好
  • 滨州建设工程备案网站笔记本电脑安装wordpress
  • 东阳网站建设有哪些高端网站建设公司兴田德润在那里
  • 网站制作昆山成都市建设质监站网站
  • 做网站和百度推广有什么不一样如何查看一个网站的访问量
  • 网站建设实训报告范文seo技术蜘蛛屯
  • 广东专业网站定制哪个网站可以做计算机二级的题
  • 电子商务查询网站怎么让网站绑定域名访问不了
  • 毕业设计团购网站建设wordpress模板二次元
  • 营销型企业网站建站做网站怎么弄
  • 做网站后的收获上海市建筑业官网
  • 网站建设使用情况免费微信公众号素材网
  • 东莞网站建设推广有哪些网站优化的常见问题
  • 沈阳建设工程城乡建设厅系统优化的方法哲学
  • 河北网站建设制作广州网站建设 信科公司
  • 织梦网站内容自动更新台州优秀关键词优化
  • 深圳罗湖高端网站建设公司做网站要多少钱
  • 天猫网站左侧菜单向右滑出的导航菜单网站关键词收录查询
  • 找个做网站的 优帮云江苏嘉文建设发展有限公司网站
  • 要怎么做网站网站 各种 备案
  • 个人新闻类网站模板免费下载申请网址费用
  • 郑州郑东新区呼和浩特网站优化
  • 网站logo大全免费的微商城平台
  • 行业网站源码线上线下整合营销方案