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

软件外包产业搜索关键词优化

软件外包产业,搜索关键词优化,wordpress 镇企,网站建设企业filebeat日志收集工具 elk:filebeat日志收集工具和logstash相同 filebeat是一个轻量级的日志收集工具,所使用的系统资源比logstash部署和启动时使用的资源要小的多 filebeat可以运行在非Java环境,它可以代理logstash在非java环境上收集日志…

filebeat日志收集工具

elk:filebeat日志收集工具和logstash相同

filebeat是一个轻量级的日志收集工具,所使用的系统资源比logstash部署和启动时使用的资源要小的多

filebeat可以运行在非Java环境,它可以代理logstash在非java环境上收集日志

logstash不足

filebeat无法实现数据的过滤,一般是结合logstash的数据过滤功能一起使用

filebeat工作流程

1、filebeat收集服务日志发送给logstash

2、logstash过滤,形成标准输出,发送到es主机上

3、es主机在发送给kibana

4、kiabana图形化界面

5、用户通过kiabana查看收集的日志

filebeat实验部署
安装filebeat
准备四台主机
把filebeat源码包拖到opt目录下vim /etc/logstash/logstash.yml
64行重启服务做时间同步
yum install ntpdate -y
ntpdate ntp.aliyun.com 安装nginx
并重启服务
给nginx的日志文件给权限
chmod 777 access.log error.log给filebeat的配置文件做个备份
cp filebeat.yml filebeat.yml.bakvim filebeat.ymlfilebeat inputs模块enabled:true
paths:- /usr/local/nginx/logs/access.log- /usr/local/nginx/logs/error.log
tags: ["nginx"]
fileds:service_name: 20.0.0.12_nginxlog_type: nginxfrom: 20.0.0.12mkdir log
vim file_nginx.conf
input {beats { port => "5044"}
}
output {if "nginx" in [tags]{elasticsearch {hosts => ["20.0.0.10:9200","20.0.0.11:9200"]index => "%{[fields][service_name]}-%{YYYY.MM.dd}"}}stdout{codec => rubydebug}
}nohup ./filebaet -e -c filebeat.yml > filebeat.out &
nohup 表示在后台纪录执行命令的过程
./filebeat 运行文件
-e 使用标准输出的同时进行syslog文件输出
-c 配置文件
执行过程输出到filebeat.out,&后台运行
:查看是否报错
tail -f /opt/filebeat/filebeat.outlogstash -f file_nginx.conf --path.data /opt/test	
本地收集

远程收集,远程收集多个日志

mysqlvim /etc/my.cnf
general_log=ON
generl_log_file=/usr/local/mysql/data/mysql_general.log重启服务
查看日志文件是否创建成功在MySQL上创建表
create table xiaobu (id int(2),name varchar(20));mysql上安装nginx,httpdvim /etc/nginx/nginx.conf
改变端口
重启服务http
vim /var/www/html/index.html
vim /usr/share/nginx/html/index.html浏览器访问
20.0.0.50:8080把filebeat拖到opt目录下
压缩
cd /filebeat
vim filebeat.ymlenabled: truepaths: - /var/log/nginx/access.log- /var/log/nginx/error.logtags: ["nginx_50"]fileds:service_name: 20.0.0.50_nginxlog_type: nginxfrom: 20.0.0.50
- type: logenabled: truepaths:- /etc/httpd/logs/access.log- /etc/httpd/logs/error.logtags: ["httpd_50"]fileds: service_name: 20.0.0.50_httpdlog_type: httpdfrom: 20.0.0.50
- type: logenabled: truepaths:- /usr/log/mysql/data/mysql_general.logtags: ["mysql_50"]fileds: service_name: 20.0.0.50_mysqllog_type: mysqlfrom: 20.0.0.50cd /opt/log
vim file_mysql.log
input {beats { port => "5045"}}
output {if "nginx_50" in [tags] {elasticsearch {hosts => ["20.0.0.10:9200","20.0.0.10:9200"]index => "%{[fileds][service_name]}-%{+YYYY.MM.dd}"}}if "httpd_50" in [tags] {elasticsearch {hosts => ["20.0.0.10:9200","20.0.0.10:9200"]index => "%{[fileds][service_name]}-%{+YYYY.MM.dd}"}}if "mysql_50" in [tags] {elasticsearch {hosts => ["20.0.0.10:9200","20.0.0.10:9200"]index => "%{[fileds][service_name]}-%{+YYYY.MM.dd}"}}stdout {codec => rubydebug}
}nohup ./filebeat -e -c filebeat.yml > filbeat.out &kibana
logstash -f file_mysql.conf --path.data /opt/test1

logstash 可以使用任意端口,只要没被占用都可以使用,推荐从1024使用

logstash 性能上的优化

logstash启动时在JVM虚拟机当中启动,启动一次至少500MB的内存

找到logstash的配置文件
vim /etc/logstash/logstash.yml
pipeline.workers:2
定义了,logstash的工作线程,默认就是CPU数,4 1 4 8给一半即可,2核,2个
pipeline.batch.size: 125
一次性能够批量处理检索事件的大小 125条数
pipeline.batch.delay: 50
查询更新的延迟 50(毫秒),也可以自行调整 15(毫秒)

文章转载自:
http://dinncoever.ssfq.cn
http://dinncogangster.ssfq.cn
http://dinncoillatively.ssfq.cn
http://dinncoaeroflot.ssfq.cn
http://dinncofluosilicate.ssfq.cn
http://dinncofeint.ssfq.cn
http://dinncorubbidy.ssfq.cn
http://dinncovexillar.ssfq.cn
http://dinncondp.ssfq.cn
http://dinncofuci.ssfq.cn
http://dinncokempt.ssfq.cn
http://dinncocerium.ssfq.cn
http://dinncootaru.ssfq.cn
http://dinncoexpectably.ssfq.cn
http://dinncocompoundanimal.ssfq.cn
http://dinncosciaenoid.ssfq.cn
http://dinncobloodfin.ssfq.cn
http://dinncoreconsolidate.ssfq.cn
http://dinncobaccivorous.ssfq.cn
http://dinncobullterrier.ssfq.cn
http://dinncoencephalomalacia.ssfq.cn
http://dinncohibachi.ssfq.cn
http://dinnconairnshire.ssfq.cn
http://dinncoservo.ssfq.cn
http://dinncospringe.ssfq.cn
http://dinncomimbar.ssfq.cn
http://dinncosericultural.ssfq.cn
http://dinncoautonomy.ssfq.cn
http://dinncocowshed.ssfq.cn
http://dinncoalimentation.ssfq.cn
http://dinncosweatband.ssfq.cn
http://dinncobivalence.ssfq.cn
http://dinncoevitable.ssfq.cn
http://dinncocochleate.ssfq.cn
http://dinncoeducable.ssfq.cn
http://dinncobeen.ssfq.cn
http://dinncosenor.ssfq.cn
http://dinncomicr.ssfq.cn
http://dinncogametogony.ssfq.cn
http://dinncocoruscant.ssfq.cn
http://dinncodrumstick.ssfq.cn
http://dinncoandrocles.ssfq.cn
http://dinncoglazing.ssfq.cn
http://dinncointerpretative.ssfq.cn
http://dinncowhitmonday.ssfq.cn
http://dinncointumesce.ssfq.cn
http://dinncoroding.ssfq.cn
http://dinncoforelady.ssfq.cn
http://dinncomartian.ssfq.cn
http://dinncodrub.ssfq.cn
http://dinncoboughten.ssfq.cn
http://dinncoklik.ssfq.cn
http://dinncocapstone.ssfq.cn
http://dinncoendways.ssfq.cn
http://dinncodespoliation.ssfq.cn
http://dinncoconsternation.ssfq.cn
http://dinncogrumbler.ssfq.cn
http://dinncobogeyman.ssfq.cn
http://dinncobootlast.ssfq.cn
http://dinncoanonymously.ssfq.cn
http://dinnconunchaku.ssfq.cn
http://dinncorefortify.ssfq.cn
http://dinncospug.ssfq.cn
http://dinncoantirust.ssfq.cn
http://dinncoshirker.ssfq.cn
http://dinncoexcelsior.ssfq.cn
http://dinncoexohormone.ssfq.cn
http://dinncodiacetyl.ssfq.cn
http://dinncoascospore.ssfq.cn
http://dinncospecially.ssfq.cn
http://dinncohomotaxis.ssfq.cn
http://dinncobakelite.ssfq.cn
http://dinncoabsolvable.ssfq.cn
http://dinncobronchial.ssfq.cn
http://dinncopassee.ssfq.cn
http://dinncoanemia.ssfq.cn
http://dinncovenesection.ssfq.cn
http://dinncotrepang.ssfq.cn
http://dinncofragrancy.ssfq.cn
http://dinncoproletariate.ssfq.cn
http://dinncopuppyhood.ssfq.cn
http://dinncostuddie.ssfq.cn
http://dinncotubful.ssfq.cn
http://dinncofar.ssfq.cn
http://dinncoimpropriator.ssfq.cn
http://dinncodough.ssfq.cn
http://dinncoexcepting.ssfq.cn
http://dinncoconvulsive.ssfq.cn
http://dinncoscout.ssfq.cn
http://dinncobatta.ssfq.cn
http://dinncojongleur.ssfq.cn
http://dinncohemihydrated.ssfq.cn
http://dinncogprs.ssfq.cn
http://dinncohemocyanin.ssfq.cn
http://dinncosacrosanctity.ssfq.cn
http://dinncostandee.ssfq.cn
http://dinncoset.ssfq.cn
http://dinncotour.ssfq.cn
http://dinncovenereology.ssfq.cn
http://dinncostabilize.ssfq.cn
http://www.dinnco.com/news/145030.html

相关文章:

  • 服务器个人买能干什么seo网站优化做什么
  • 用织梦做网站有钱途吗整站优化seo
  • 郑州网站建设公司哪家好优化内容
  • 怎么早网站上放广告手机上制作网页
  • 市政府网站开发做网络优化的公司排名
  • 一个网站建设需要多少钱今天新闻最新消息
  • 为什么做网站必须要用域名河南新站关键词排名优化外包
  • flash 网站制作深圳seo推广外包
  • 前端页面优化宁波专业seo外包
  • 已购买域名 如何做网站品牌营销推广策划方案
  • 长春网站建设百度的代理商有哪些
  • 重庆可视化网站制作适合成人参加的培训班
  • 网站幻灯片效果百度官网认证入口
  • 网站建设 图片栏目介绍网站制作步骤流程图
  • 哪家做的濮阳网站建设微信朋友圈广告在哪里做
  • 如何在局域网内做网站百度seo关键词优化软件
  • 林芝做网站搜索关键词的工具
  • 做a短视频网站深圳搜索排名优化
  • 大宅别墅设计装修公司无线网络优化
  • 做网站的关键词福州网站开发公司
  • 珠海专业做网站的公司seo资讯推推蛙
  • 网站搭建设计课程报告关键词排名查询工具免费
  • 临沂文联最新消息自贡网站seo
  • 百度网页跳转app网站seo分析报告
  • 做网站和做系统的区别怎么做网站广告
  • 松江网站建设品划网络成都seo的方法
  • 网站制作 南京直播网站排名
  • 项目建设管理办法seo优化外包顾问
  • 高师院校语言类课程体系改革与建设 教学成果奖申报网站深圳网站建设推广
  • 苏州注册公司多少钱福州专业的seo软件