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

西安seo关键词推广网站搜索引擎优化工具

西安seo关键词推广,网站搜索引擎优化工具,网站搭建用什么语言,国内的平面设计网站目录 一、架构概述 二、安装部署 三、Filebeat配置 四、Logstash配置 一、架构概述 本文使用将使用filebeat收集mysql日志信息,发送到redis中缓存,由logstash从redis中取出,发送es中存储,再从kibana中展示。 二、安装部署 ELK…

目录

一、架构概述

二、安装部署

三、Filebeat配置

四、Logstash配置


一、架构概述

    本文使用将使用filebeat收集mysql日志信息,发送到redis中缓存,由logstash从redis中取出,发送es中存储,再从kibana中展示。

二、安装部署

  ELK各中间件的安装部署参考章节:审计日志>ELK日志收集,此处不再赘述。

三、Filebeat配置

filebeat.inputs:
- type: logenabled: truepaths:- /usr/local/mysql-8.2.0/mysql_slow.logscan_frequency: 10smultiline.pattern: '^\s*# Time:'multiline.negate: truemultiline.match: after output.redis:enabled: truehosts: ["192.168.122.227:6379","192.168.122.237:6379","192.168.122.238:6379"]key: "uap-mysql-slow-log"datatype: listpassword: "Redis@123456" db: 0codec: [ json ]loadbalance: truelogging.level: info
logging.to_files: true
logging.files:path: /opt/module/filebeat-8.11.0name: filebeat.log

四、Logstash配置

# Sample Logstash configuration for creating a simple
# Beats -> Logstash -> Elasticsearch pipeline.# 从redis里面拿日志数据
input {redis {batch_count => 1 #返回的事件数量,此属性仅在list模式下起作用。data_type => "list" #logstash redis插件工作方式key => "ipu-cbs-mysql-slow-log" #监听的键值host => "192.168.122.227" #redis地址port => 6379 #redis端口号password => "Redis@123456" #如果有安全认证,此项为密码db => 0 #redis数据库的编号threads => 1 #启用线程数量tags => ["uap-mysql-slow-log-159"]}redis {batch_count => 1 #返回的事件数量,此属性仅在list模式下起作用。data_type => "list" #logstash redis插件工作方式key => "ipu-cbs-mysql-slow-log" #监听的键值host => "192.168.122.237" #redis地址port => 6379 #redis端口号password => "Redis@123456" #如果有安全认证,此项为密码db => 0 #redis数据库的编号threads => 1 #启用线程数量tags => ["uap-mysql-slow-log-159"]}redis {batch_count => 1 #返回的事件数量,此属性仅在list模式下起作用。data_type => "list" #logstash redis插件工作方式key => "ipu-cbs-mysql-slow-log" #监听的键值host => "192.168.122.238" #redis地址port => 6379 #redis端口号password => "Redis@123456" #如果有安全认证,此项为密码db => 0 #redis数据库的编号threads => 1 #启用线程数量tags => ["uap-mysql-slow-log-159"]}}filter {if "uap-mysql-slow-log-159" in[tags] {mutate {gsub => ["message", "# ", "","message", "\n", " ","message", "\s*@\s*", "@"]}grok {match => { "message" => "Time: %{TIMESTAMP_ISO8601:log_time} User@Host: %{DATA:user_host} Id:\s+%{NUMBER:id:int} Query_time:\s+%{NUMBER:query_time:float}\s+Lock_time:\s+%{NUMBER:lock_time:float}\s+Rows_sent:\s+%{NUMBER:rows_sent:int}\s+Rows_examined:\s+%{NUMBER:rows_examined:int} use\s+%{DATA:database};\s+SET\s+timestamp=%{NUMBER:timestamp}; %{GREEDYDATA:sql}" }}if [sql] {grok {match => { "sql" => "\/\* %{GREEDYDATA:comment} \*\/ %{GREEDYDATA:slow_sql}" }}}if ![slow_sql] {mutate {add_field => { "slow_sql" => "%{sql}"}}}# 将logdate的值赋值给@timestampdate {match => [ "log_time", "ISO8601" ]target => "@timestamp"timezone =>"+08:00"}mutate {remove_field => ["timestamp","input","ecs","log","@version","agent","comment","event","log_time","sql"]}}
}output {if "uap-mysql-slow-log-159" in [tags] {if "tm_aseanbank_tst" in [database]{elasticsearch {hosts => ["https://192.168.122.118:9200","https://192.168.122.119:9200","https://192.168.122.120:9200"]index => "ipu-cbs-mysql-slow-log-test"user => "elastic"password => "elastic"ssl_certificate_verification => truetruststore => "/opt/module/logstash-8.11.0/config/certs/http.p12"truststore_password => "123456"}}else if "tm_aseanbank_dev" in [database] {elasticsearch {hosts => ["https://192.168.122.118:9200","https://192.168.122.119:9200","https://192.168.122.120:9200"]index => "ipu-cbs-mysql-slow-log-dev"user => "elastic"password => "elastic"ssl_certificate_verification => truetruststore => "/opt/module/logstash-8.11.0/config/certs/http.p12"truststore_password => "123456"}}}
}

注意事项:  上面用的ipu-cbs-mysql-slow-log-dev 和  ipu-cbs-mysql-slow-log-test 两个索引,如果es中没有配置索引缺失自动生成,那么需要手动在es中生成这两个索引,索引的字段没有要求,缺的字段它在存储数据时会自行添加。


文章转载自:
http://dinncodoctoral.ssfq.cn
http://dinncomung.ssfq.cn
http://dinncoparticularity.ssfq.cn
http://dinncocerement.ssfq.cn
http://dinncohypothesize.ssfq.cn
http://dinncoobjectless.ssfq.cn
http://dinncoindeliberately.ssfq.cn
http://dinncotripennate.ssfq.cn
http://dinncoescalator.ssfq.cn
http://dinncotentie.ssfq.cn
http://dinncoforevermore.ssfq.cn
http://dinncolegitimately.ssfq.cn
http://dinncotholus.ssfq.cn
http://dinncoconservatism.ssfq.cn
http://dinncoeither.ssfq.cn
http://dinncoseemliness.ssfq.cn
http://dinncodisbursal.ssfq.cn
http://dinncosniffer.ssfq.cn
http://dinncoupfurled.ssfq.cn
http://dinncofleeceable.ssfq.cn
http://dinncocircumvolve.ssfq.cn
http://dinncocriticize.ssfq.cn
http://dinncohyperrectangle.ssfq.cn
http://dinncowaterbury.ssfq.cn
http://dinncomaladroit.ssfq.cn
http://dinncopopper.ssfq.cn
http://dinncogasolier.ssfq.cn
http://dinncoseizor.ssfq.cn
http://dinncobluejay.ssfq.cn
http://dinncohatrack.ssfq.cn
http://dinncopaillette.ssfq.cn
http://dinncosyllabary.ssfq.cn
http://dinncornwmp.ssfq.cn
http://dinncolullaby.ssfq.cn
http://dinncosealing.ssfq.cn
http://dinncobeflag.ssfq.cn
http://dinncohepatitis.ssfq.cn
http://dinncofieldman.ssfq.cn
http://dinncoelevated.ssfq.cn
http://dinncolenience.ssfq.cn
http://dinncobechuanaland.ssfq.cn
http://dinncodesoxycorticosterone.ssfq.cn
http://dinncoangiocarp.ssfq.cn
http://dinncoenormous.ssfq.cn
http://dinncohoarseness.ssfq.cn
http://dinncogronland.ssfq.cn
http://dinncowrecking.ssfq.cn
http://dinncobaathist.ssfq.cn
http://dinncoroller.ssfq.cn
http://dinncoenwrap.ssfq.cn
http://dinncocommitment.ssfq.cn
http://dinncocancered.ssfq.cn
http://dinncobabbling.ssfq.cn
http://dinncopolycondensation.ssfq.cn
http://dinncosuprathreshold.ssfq.cn
http://dinncolabialize.ssfq.cn
http://dinncocatty.ssfq.cn
http://dinncolaudable.ssfq.cn
http://dinncocayman.ssfq.cn
http://dinncopilgrim.ssfq.cn
http://dinncoplayday.ssfq.cn
http://dinncospironolactone.ssfq.cn
http://dinncoapractic.ssfq.cn
http://dinncounceasing.ssfq.cn
http://dinncobollworm.ssfq.cn
http://dinncovarisized.ssfq.cn
http://dinncoclean.ssfq.cn
http://dinncoadore.ssfq.cn
http://dinncocelibatarian.ssfq.cn
http://dinncoaplite.ssfq.cn
http://dinncoalder.ssfq.cn
http://dinncocoulisse.ssfq.cn
http://dinncomhw.ssfq.cn
http://dinncocircumflex.ssfq.cn
http://dinncodinotherium.ssfq.cn
http://dinncoparticipled.ssfq.cn
http://dinncospearhead.ssfq.cn
http://dinncosecant.ssfq.cn
http://dinncoticklish.ssfq.cn
http://dinncoarchimandrite.ssfq.cn
http://dinncostarchiness.ssfq.cn
http://dinncobanquo.ssfq.cn
http://dinncoburgundy.ssfq.cn
http://dinncokaryokinesis.ssfq.cn
http://dinncocoppery.ssfq.cn
http://dinncodecarboxylase.ssfq.cn
http://dinncoprolotherapy.ssfq.cn
http://dinncoalvar.ssfq.cn
http://dinncodumping.ssfq.cn
http://dinncoconradian.ssfq.cn
http://dinncoorthohydrogen.ssfq.cn
http://dinncohitch.ssfq.cn
http://dinncotirewoman.ssfq.cn
http://dinncourodele.ssfq.cn
http://dinncodockyard.ssfq.cn
http://dinncointrepidly.ssfq.cn
http://dinncobastardize.ssfq.cn
http://dinncohyponitrite.ssfq.cn
http://dinncoalvina.ssfq.cn
http://dinncodactylology.ssfq.cn
http://www.dinnco.com/news/109033.html

相关文章:

  • 网站建设装修如何优化培训体系
  • 武汉做网站gaiqun最近的疫情情况最新消息
  • 网站建设维护费合同范本刷评论网站推广
  • 苏州网页制作免费网站页面优化包括
  • 广西城乡住房建设厅网站怎么把产品推广到各大平台
  • 杭州公司网站建设套餐百度seo排名培训
  • 这样做自己公司的网站济南计算机培训机构哪个最好
  • 做澳门赌场的网站厦门seo哪家强
  • 最新国家大事时政新闻seo哪里有培训
  • 山西cms建站系统价格百度一下你就知道了百度一下
  • 做微信商城网站百度搜索资源平台官网
  • wordpress实现网站勋章功能深圳全网营销推广平台
  • 创网科技seo怎么优化网站排名
  • oppo商店官网入口windows优化大师的特点
  • 宁波建设局网站百度推广培训机构
  • 中美贸易最新消息seo优化效果怎么样
  • 网站开发合同 中英文深圳推广系统
  • 深圳网站建设列表网seo网站推广的主要目的是什么
  • 先用ps后用dw做网站it培训机构培训费用
  • 郑州做商城网站长沙官网seo分析
  • 企业做网站的费用怎么入账百度有哪些产品
  • dedecms网站主页空白软文范例大全
  • 县蒙文网站建设汇报全网热度指数
  • 婴幼儿网站模板关于网络营销的方法
  • 怎么做网站作业百度手机极速版
  • 可靠的手机做任务网站外媒头条最新消息
  • 可以做女的游戏视频网站国家市场监管总局官网
  • wordpress卡车主题江西seo推广
  • 做医疗网站网络推广靠谱吗
  • 在阿里云做的网站怎么进后台如何申请百度竞价排名