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

传统文化传播公司网站建设wordpress添加单页模板

传统文化传播公司网站建设,wordpress添加单页模板,自己做的网站可以开直播,携程网网站是哪家公司做的1 默认配置 1.1 filebeat filebeat-7.17.yml,从网关中下载k8s的配置#xff0c;指定es和kibana的配置 通过kibana查询可以查询到日志了#xff0c;但此时还不知道具体怎么用。 1.2 kibana 在Discover中创建索引格式#xff1a;filebeat-*#xff0c;得到如下图#xf…1 默认配置 1.1 filebeat filebeat-7.17.yml,从网关中下载k8s的配置指定es和kibana的配置 通过kibana查询可以查询到日志了但此时还不知道具体怎么用。  1.2 kibana 在Discover中创建索引格式filebeat-*得到如下图可以看出acc-statement-server的日志最多。但里面的字段太多了下面应该怎么看呢 再跟进查看日志filebeat应该是每一样记录一次这个浪费了很多存储空间。另外排查问题也并不好查。 2 多行合并输出 如果使用默认的配置每一行日志就会产生一条记录。 2.1 filebeat 增加多行规则匹配 设置索引符合条件走自己的索引否则则为默认索引 output.elasticsearch:hosts: [10.101.10.2:9200,10.101.10.3:9200,10.101.10.4:9200]username: ${ELASTICSEARCH_USERNAME}password: ${ELASTICSEARCH_PASSWORD}indices:- index: acc-accountbook-server-%{yyyy.MM.dd}when.contains:kubernetes.container.name: acc-accountbook-server- index: acc-analysis-server-%{yyyy.MM.dd}when.contains:kubernetes.container.name: acc-analysis-serverindex: filebeat-7.17.25-%{yyyy.MM.dd} 在kibana中跟进日志发现少部分日志输出成功大多失败这是什么原因呢 为什么有些可以添加数据有些不能呢 调试发现我在索引前面加上了eayc就可以了看来问题就出现在索引策略 2.2 logback 上面的时间分割是需要logback配置与之对应。如我的系统日志打印出来的是这个那么filebeat中就无法实现多行合并了。 如下图修改logback配置。 2.3 pipeline 在elasticsearch中创建pipeline,参考了【ELK】到【EFK】,【Filebeat】收集【SpringBoot】日志但最终还是放弃了还是按照k8s自带的格式这样便于处理不需要非得自定义格式。 PUT _ingest/pipeline/eayc_log_pipeline {description: 岁月云日志管道,processors: [{remove: {field: agent.name,ignore_missing: true}},{remove: {field: agent.ephemeral_id,ignore_missing: true}},{remove: {field: log.file.path,ignore_missing: true}},{remove: {field: input.type,ignore_missing: true}},{remove: {field: kubernetes.node.labels.kubernetes_io/hostname,ignore_missing: true}},{remove: {field: kubernetes.labels.k8s_kuboard_cn/layer,ignore_missing: true}},{remove: {field: kubernetes.deployment.name,ignore_missing: true}},{remove: {field: container.runtime,ignore_missing: true}},{remove: {field: ecs.version,ignore_missing: true}},{remove: {field: host.architecture,ignore_missing: true}},{remove: {field: host.containerized,ignore_missing: true}},{remove: {field: host.mac,ignore_missing: true}},{remove: {field: host.os.codename,ignore_missing: true}},{remove: {field: host.os.name,ignore_missing: true}},{remove: {field: host.os.platform,ignore_missing: true}},{remove: {field: kubernetes.labels.k8s_kuboard_cn/name,ignore_missing: true}},{remove: {field: kubernetes.labels.pod-template-hash,ignore_missing: true}},{remove: {field: kubernetes.namespace_uid,ignore_missing: true}},{remove: {field: kubernetes.node.labels.beta_kubernetes_io/arch,ignore_missing: true}},{remove: {field: kubernetes.node.labels.beta_kubernetes_io/os,ignore_missing: true}},{remove: {field: log.flags,ignore_missing: true}},{remove: {field: log.offset,ignore_missing: true}},{remove: {field: kubernetes.container.id,ignore_missing: true}},{remove: {field: kubernetes.pod.uid,ignore_missing: true}}] } 创建索引策略 PUT _ilm/policy/eayc_log_policy {policy: {phases: {hot: {min_age: 0ms,actions: {rollover: {max_size: 50gb,max_age: 30d}}},delete: {min_age: 90d,actions: {delete: {}}}}} } 2.4 elasticsearch      在k8s中启动filebeat中查看filebeat的日志发现 2024-10-29T07:55:33.935Z ERROR [elasticsearch] elasticsearch/client.go:226 failed to perform any bulk index operations: 500 Internal Server Error: {error:{root_cause:[{type:illegal_state_exception,reason:There are no ingest nodes in this cluster, unable to forward request to an ingest node.}],type:illegal_state_exception,reason:There are no ingest nodes in this cluster, unable to forward request to an ingest node.},status:500} 则需要在elasticsearch.yml中增加配置 node.roles: [ingest] 创建组合模板 PUT _component_template/filebeat_settings {template: {settings: {number_of_shards: 1,number_of_replicas: 1}} }PUT _component_template/filebeat_mappings {template: {mappings: {properties: {timestamp: {type: date},message: {type: text}}}} }PUT _component_template/eayc_mappings {template: {mappings: {properties: {timestamp: {type: date},message: {type: text},custom_field: {type: keyword}}}} }PUT _component_template/acc_mappings {template: {mappings: {properties: {timestamp: {type: date},message: {type: text},custom_field: {type: keyword}}}} }PUT _index_template/filebeat {index_patterns: [filebeat-*],composed_of: [filebeat_settings, filebeat_mappings],priority: 100,template: {settings: {index.lifecycle.name: eayc_log_policy,index.lifecycle.rollover_alias: filebeat-write}} }PUT _index_template/eayc {index_patterns: [eayc-*],composed_of: [filebeat_settings, eayc_mappings],priority: 100,template: {settings: {index.lifecycle.name: eayc_log_policy,index.lifecycle.rollover_alias: filebeat-write}} }PUT _index_template/acc {index_patterns: [acc-*],composed_of: [filebeat_settings, acc_mappings],priority: 100,template: {settings: {index.lifecycle.name: eayc_log_policy,index.lifecycle.rollover_alias: filebeat-write}} }接着再看acc添加进去了 再看日志数据出来了
http://www.hkea.cn/news/14257999/

相关文章:

  • 怎么才能让自己做的网站上传到百度搜关键字可以搜到南宁广告网页设计招聘信息
  • 做网站啦代理的方法天猫电商平台
  • 网站更换空间注意沈阳网络推广优化
  • 如何让一个网站排名掉扬州建设银行网站
  • 网站建设工作任务wordpress批量上传插件下载
  • 最新网站备案杭州做网站费用
  • 网站建设与维护书北京网站优化诊断
  • 徐州做网站费用图片常采用gif或jpeg格式
  • txt电子书下载网站推荐wordpress除了博客外主题
  • 河南企业网站建设公司新手适合在哪个平台开网店
  • 申请完域名如何建设网站电子商务网站建设编码
  • 建网站的公司赚钱吗北京网络职业学院怎么样
  • 网站开发工作 岗位怎么称呼久久建筑网是个什么样的网站
  • 李沧做网站wordpress嵌入外部网页
  • 银川市住房和城乡建设局网站wordpress eshop 中文
  • 沈阳网站建设公司怎么样网站建设空间
  • 企业网站 留言板盘州电子商务网站建设
  • 自己做微信优惠券需要网站农产品网站建设 孙修东
  • 农安县建设局网站和拓者设计吧类似的网站
  • 东平网站建设国家商标查询入口
  • 太平洋在线企业网站管理系统海南省城乡建设厅网站
  • 企业网站的制作与维护网站建设合同范文
  • 公司网站开发费用计入什么科目购物网站开发用什么软件
  • wordpress 中文网站电子商务网站建设的步骤一般分为
  • 长沙制作手机网站一台电脑主机做网站
  • 三亚市住房和城乡建设厅网站简单的小程序开发
  • 静态网站 分页太原cms模板建站
  • 建设工程 质量 协会网站下列关于网站开发中网页发布
  • 网站seo外包技术资源门户网站cms程序
  • 手机建网站花钱吗企业网站 手机站